]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add information messages to the remove command as well
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 27 Oct 2011 13:45:20 +0000 (16:45 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 27 Oct 2011 13:45:20 +0000 (16:45 +0300)
qcsrc/server/mutators/sandbox.qc

index 6bdbaf713b98c1bd1bc51012c24d4565a802fdb5..077952db57de6eaeb90af4034867ed33c645442a 100644 (file)
@@ -349,7 +349,12 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand)
                                                // removes e if it was attached
                                                e = sandbox_EditObject_Get();
                                                if(e != world)
+                                               {
                                                        sandbox_AttachObject_Remove(e);
+                                                       print_to(self, "Child objects detached successfully");
+                                                       return TRUE;
+                                               }
+                                               print_to(self, "WARNING: Child objects could not be detached. Make sure you are facing an object that belongs to you");
                                                return TRUE;
                                }
                                return TRUE;