mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
fixed bot winning on many versions
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user