]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove keys instantly rather than on a delay (partially fixes the problem of keys...
authorMario <zacjardine@y7mail.com>
Sun, 1 Feb 2015 11:37:43 +0000 (22:37 +1100)
committerMario <zacjardine@y7mail.com>
Sun, 1 Feb 2015 11:37:43 +0000 (22:37 +1100)
qcsrc/server/mutators/gamemode_keyhunt.qc

index e31bf110aa5611e04196a969189de0c2e2fd671b..ba7b9322fcde86e39618b6ab8e85b8018140e0fd 100644 (file)
@@ -847,8 +847,7 @@ void kh_RemoveKey(entity key)
        // reset the key
        setattachment(key, world, "");
 
-       key.think = SUB_Remove;
-       key.nextthink = time;
+       remove(key);
 }
 
 void kh_Reset()