From: terencehill Date: Wed, 11 May 2022 21:56:05 +0000 (+0200) Subject: Remove redundant .team initialization in MUTATOR_HOOKFUNCTION(ca, reset_map_players... X-Git-Tag: xonotic-v0.8.5~41 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9528dc8bdc7b4382c344598e88c49abeefa69b93;p=xonotic%2Fxonotic-data.pk3dir.git Remove redundant .team initialization in MUTATOR_HOOKFUNCTION(ca, reset_map_players) for bots --- diff --git a/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc b/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc index 3b823dfdf..7803108c6 100644 --- a/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc +++ b/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc @@ -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);