From 258df13451bfe248cf1f4f97002a4ab802d023f2 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 3 Feb 2018 17:48:00 +0000 Subject: [PATCH] Fix missing PauseStateLocked check on "/pause" chat command. --- OpenRA.Mods.Common/Commands/PlayerCommands.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/OpenRA.Mods.Common/Commands/PlayerCommands.cs b/OpenRA.Mods.Common/Commands/PlayerCommands.cs index 559c7c2bc5..e6de9d60ad 100644 --- a/OpenRA.Mods.Common/Commands/PlayerCommands.cs +++ b/OpenRA.Mods.Common/Commands/PlayerCommands.cs @@ -39,10 +39,7 @@ namespace OpenRA.Mods.Common.Commands { case "pause": if (Game.IsHost || (world.LocalPlayer != null && world.LocalPlayer.WinState != WinState.Lost)) - world.IssueOrder(new Order("PauseGame", null, false) - { - TargetString = world.Paused ? "UnPause" : "Pause" - }); + world.SetPauseState(!world.Paused); break; case "surrender":