]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/gamemode_onslaught.qc
Clean up GetTeamCount
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / gamemode_onslaught.qc
index 869cd90d2dbfcfb3e14fd1fab5a5ed3567360f32..cc6ad200cd05c4d01e5be035ab72e5f0f2832a54 100644 (file)
@@ -1937,8 +1937,7 @@ MUTATOR_HOOKFUNCTION(ons, HavocBot_ChooseRole)
 MUTATOR_HOOKFUNCTION(ons, GetTeamCount)
 {
        // onslaught is special
-       entity tmp_entity;
-       for(tmp_entity = ons_worldgeneratorlist; tmp_entity; tmp_entity = tmp_entity.ons_worldgeneratornext)
+       for(entity tmp_entity = ons_worldgeneratorlist; tmp_entity; tmp_entity = tmp_entity.ons_worldgeneratornext)
        {
                switch(tmp_entity.team)
                {