From 1e7b0e62674ebd3261a6c9346b176597002752e2 Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Thu, 31 Oct 2013 22:36:04 +0100 Subject: [PATCH] Moved team balancing to round start in stead of round end. Fixes issue with maps or plugins inspecting player teams in round end event; being unable to detect which players that are zombies when the round has ended. Thanks to "Neuro Toxin". Possible side effect: After round end, but before restart, zombies may not be able to pick up weapons to use in the next round. This might be ok, it's just dumb zombies. But it should be possible to fix this in the weapon restrict module if there's a need for it. --- src/zr/roundend.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/zr/roundend.inc b/src/zr/roundend.inc index b800304..9446bb1 100644 --- a/src/zr/roundend.inc +++ b/src/zr/roundend.inc @@ -121,6 +121,12 @@ RoundEndOnRoundStart() // Reset timer handle. tRoundEnd = INVALID_HANDLE; } + + // Balance teams if enabled. + if (GetConVarBool(g_hCvarsList[CVAR_ROUNDEND_BALANCE_TEAMS])) + { + RoundEndBalanceTeams(); + } } /** @@ -192,12 +198,6 @@ RoundEndOnRoundEnd(reason) // Display the overlay to all clients. RoundEndOverlayStart(outcome); - - // Balance teams if enabled. - if (GetConVarBool(g_hCvarsList[CVAR_ROUNDEND_BALANCE_TEAMS])) - { - RoundEndBalanceTeams(); - } } /**