]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
If the object was attached, no longer keep it scheduled for attachment
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 27 Oct 2011 13:42:44 +0000 (16:42 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 27 Oct 2011 13:42:44 +0000 (16:42 +0300)
qcsrc/server/mutators/sandbox.qc

index dd262989d209cb02c6f1534052a97d79ee5fb1fd..6bdbaf713b98c1bd1bc51012c24d4565a802fdb5 100644 (file)
@@ -340,6 +340,7 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand)
                                                {
                                                        sandbox_AttachObject_Set(self.object_attach, e, argv(3));
                                                        print_to(self, "Object attached successfully");
+                                                       self.object_attach = world; // object was attached, no longer keep it scheduled for attachment
                                                        return TRUE;
                                                }
                                                print_to(self, "WARNING: Object could not be attached to the parent. Make sure you are facing an object that belongs to you");