]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow the edit_object command to receive a property without a value, as we now use...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 27 Oct 2011 19:56:37 +0000 (22:56 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 27 Oct 2011 19:56:37 +0000 (22:56 +0300)
qcsrc/server/mutators/sandbox.qc

index c82c815e7b10f07ccedea85aa8cfbbeeee34899e..814e69b80b075cf386927b0c05228fc09f527550 100644 (file)
@@ -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;
                                }