From: Mircea Kitsune Date: Thu, 27 Oct 2011 19:56:37 +0000 (+0300) Subject: Allow the edit_object command to receive a property without a value, as we now use... X-Git-Tag: xonotic-v0.6.0~35^2~18^2~105 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5207b674f1abb1cefcfbed533d81acf7816b064a;p=xonotic%2Fxonotic-data.pk3dir.git Allow the edit_object command to receive a property without a value, as we now use that to set no material --- diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index c82c815e7..814e69b80 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -372,9 +372,9 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand) // ---------------- COMMAND: EDIT OBJECT ---------------- case "edit_object": - if(!argv(2) || !argv(3)) + if(!argv(2)) { - print_to(self, "WARNING: Too few parameters. You must specify a property to edit, followed by its value"); + print_to(self, "WARNING: Too few parameters. You must specify a property to edit"); return TRUE; }