fix extra bot on ch2+

This commit is contained in:
ralz
2025-03-19 19:49:01 -04:00
committed by GitHub
parent 21422add83
commit 8a7ae79baf

View File

@@ -323,8 +323,11 @@ public:
PickRandomLoadout(); PickRandomLoadout();
ApplyCosmeticLoadout(); ApplyCosmeticLoadout();
if (Fortnite_Version <= 10)
{
GameState->GetPlayersLeft()++; GameState->GetPlayersLeft()++;
GameState->OnRep_PlayersLeft(); GameState->OnRep_PlayersLeft();
}
if (auto FortPlayerControllerAthena = Cast<AFortPlayerControllerAthena>(Controller)) if (auto FortPlayerControllerAthena = Cast<AFortPlayerControllerAthena>(Controller))
GameMode->GetAlivePlayers().Add(FortPlayerControllerAthena); GameMode->GetAlivePlayers().Add(FortPlayerControllerAthena);