]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use the existing list for turrets
authorMario <mario@smbclan.net>
Sun, 21 Aug 2016 14:42:18 +0000 (00:42 +1000)
committerMario <mario@smbclan.net>
Sun, 21 Aug 2016 14:42:18 +0000 (00:42 +1000)
qcsrc/server/mutators/mutator/gamemode_assault.qc

index 3dfd5d1d3a80672e946fc2c57cba2e22aaa18449..dfe4281b23c826ae818c9c3ff075b94f0300fdea 100644 (file)
@@ -147,7 +147,8 @@ void assault_roundstart_use(entity this, entity actor, entity trigger)
        SUB_UseTargets(this, this, trigger);
 
        //(Re)spawn all turrets
-       FOREACH_ENTITY_CLASS("turret_main", true, LAMBDA(
+       IL_EACH(g_turrets, true,
+       {
                // Swap turret teams
                if(it.team == NUM_TEAM_1)
                        it.team = NUM_TEAM_2;
@@ -156,7 +157,7 @@ void assault_roundstart_use(entity this, entity actor, entity trigger)
 
                // Doubles as teamchange
                turret_respawn(it);
-       ));
+       });
 }
 void assault_roundstart_use_this(entity this)
 {