From 9528dc8bdc7b4382c344598e88c49abeefa69b93 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 11 May 2022 23:56:05 +0200 Subject: [PATCH] Remove redundant .team initialization in MUTATOR_HOOKFUNCTION(ca, reset_map_players) for bots --- qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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); -- 2.39.2