From: Mario Date: Sun, 21 Aug 2016 14:42:18 +0000 (+1000) Subject: Use the existing list for turrets X-Git-Tag: xonotic-v0.8.2~663^2~17 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c2953d10f09a5ff49276191509cbe0773e88f4d0;p=xonotic%2Fxonotic-data.pk3dir.git Use the existing list for turrets --- diff --git a/qcsrc/server/mutators/mutator/gamemode_assault.qc b/qcsrc/server/mutators/mutator/gamemode_assault.qc index 3dfd5d1d3..dfe4281b2 100644 --- a/qcsrc/server/mutators/mutator/gamemode_assault.qc +++ b/qcsrc/server/mutators/mutator/gamemode_assault.qc @@ -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) {