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

@@ -182,7 +182,7 @@ namespace OpenRA.Network
var pause = order.TargetString == "Pause";
// Prevent injected unpause orders from restarting a finished game
if (orderManager.World.PauseStateLocked && !pause)
if (orderManager.World.IsGameOver && !pause)
break;
if (orderManager.World.Paused != pause && world != null && world.LobbyInfo.NonBotClients.Count() > 1)