From: Mircea Kitsune Date: Thu, 27 Oct 2011 13:42:44 +0000 (+0300) Subject: If the object was attached, no longer keep it scheduled for attachment X-Git-Tag: xonotic-v0.6.0~35^2~18^2~121 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e841b0c786f058ae3ecb772d416211e1ee92dfd8;p=xonotic%2Fxonotic-data.pk3dir.git If the object was attached, no longer keep it scheduled for attachment --- diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index dd262989d..6bdbaf713 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -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");