Move force pausing to EndGame method

This commit is contained in:
Gustas
2023-02-17 11:06:41 +02:00
committed by Matthias Mailänder
parent 19613ed833
commit 20a16ad5f8
4 changed files with 9 additions and 17 deletions

View File

@@ -165,12 +165,8 @@ namespace OpenRA.Mods.Common.Traits
{
Game.RunAfterDelay(Info.GameOverDelay, () =>
{
if (!Game.IsCurrentWorld(player.World))
return;
player.World.EndGame();
player.World.SetPauseState(true);
player.World.PauseStateLocked = true;
if (Game.IsCurrentWorld(player.World))
player.World.EndGame();
});
}
}