From 8853ddf5a93fa5e6ee0183f8ef81072d2baf9da0 Mon Sep 17 00:00:00 2001 From: Sandust60 <96904513+M60TM@users.noreply.github.com> Date: Tue, 13 Feb 2024 01:33:52 +0900 Subject: [PATCH] freak_fortress_2: Fix waitingforplayer phase skipping (#170) [M] - "Can't joining any team" issue was fixed on Various Fixes. But gamemode.sp still use old detect method. As a result, it skips "waiting for player" phase. --- .../sourcemod/scripting/freak_fortress_2/gamemode.sp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/addons/sourcemod/scripting/freak_fortress_2/gamemode.sp b/addons/sourcemod/scripting/freak_fortress_2/gamemode.sp index c0faf0e..298fe34 100644 --- a/addons/sourcemod/scripting/freak_fortress_2/gamemode.sp +++ b/addons/sourcemod/scripting/freak_fortress_2/gamemode.sp @@ -120,15 +120,7 @@ void Gamemode_MapInit() void Gamemode_MapStart() { RoundStatus = -1; - Waiting = true; - for(int i = 1; i <= MaxClients; i++) - { - if(IsClientInGame(i)) - { - Waiting = false; - break; - } - } + Waiting = GameRules_GetRoundState() < RoundState_StartGame; } void Gamemode_MapEnd()