]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Loopify instagib
authorMario <mario@smbclan.net>
Thu, 24 Dec 2015 01:05:15 +0000 (11:05 +1000)
committerMario <mario@smbclan.net>
Thu, 24 Dec 2015 01:05:15 +0000 (11:05 +1000)
qcsrc/common/mutators/mutator/instagib/instagib.qc

index 6f35817149af1fc753a52b9691d95c5c93721d14..bc6ca5be39add6c715a5be00872abde92b6e231a 100644 (file)
@@ -139,10 +139,7 @@ void instagib_ammocheck()
 
 MUTATOR_HOOKFUNCTION(mutator_instagib, MatchEnd)
 {
-       entity head;
-       FOR_EACH_PLAYER(head)
-               instagib_stop_countdown(head);
-
+       FOREACH_CLIENT(IS_PLAYER(it), LAMBDA(instagib_stop_countdown(it)));
        return false;
 }