From 5207b674f1abb1cefcfbed533d81acf7816b064a Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Thu, 27 Oct 2011 22:56:37 +0300 Subject: [PATCH] Allow the edit_object command to receive a property without a value, as we now use that to set no material --- qcsrc/server/mutators/sandbox.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.2