]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove redundant .team initialization in MUTATOR_HOOKFUNCTION(ca, reset_map_players...
authorterencehill <piuntn@gmail.com>
Wed, 11 May 2022 21:56:05 +0000 (23:56 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 11 May 2022 21:56:05 +0000 (23:56 +0200)
qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc

index 3b823dfdf14c8142fb041c16b27f40cd6cc481fe..7803108c6c00010cb896fce7fde81da0fbfebc00 100644 (file)
@@ -194,12 +194,7 @@ MUTATOR_HOOKFUNCTION(ca, reset_map_players)
 {
        FOREACH_CLIENT(true, {
                CS(it).killcount = 0;
-               if (!INGAME(it) && IS_BOT_CLIENT(it))
-               {
-                       it.team = -1;
-                       INGAME_STATUS_SET(it, INGAME_STATUS_JOINED);
-               }
-               if (INGAME(it))
+               if (INGAME(it) || IS_BOT_CLIENT(it))
                {
                        TRANSMUTE(Player, it);
                        INGAME_STATUS_SET(it, INGAME_STATUS_JOINED);