From e841b0c786f058ae3ecb772d416211e1ee92dfd8 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Thu, 27 Oct 2011 16:42:44 +0300 Subject: [PATCH] If the object was attached, no longer keep it scheduled for attachment --- qcsrc/server/mutators/sandbox.qc | 1 + 1 file changed, 1 insertion(+) 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"); -- 2.39.2