fixed bot winning on many versions

This commit is contained in:
Gray
2025-04-07 09:43:34 -04:00
parent 79b081f8b6
commit 6746c14cd1
4 changed files with 24 additions and 14 deletions

View File

@@ -751,6 +751,12 @@ void ServerCheatHook(AFortPlayerControllerAthena* PlayerController, FString Msg)
}
else if (Command == "spawnbot")
{
if (GameState->GetGamePhase() < EAthenaGamePhase::Aircraft)
{
SendMessageToConsole(PlayerController, L"Bot spawning before aircraft is not allowed!");
return;
}
auto Pawn = ReceivingController->GetPawn();
if (!Pawn)