From ee87b1d7d340514e8dfb0eccdff79fa54a32f5bf Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 15 Oct 2015 00:45:22 +0100 Subject: [PATCH] Pause on savegame load if ctrl key is pressed. --- src/openttd.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/openttd.cpp b/src/openttd.cpp index bdb5fa8c22..192cc57205 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1139,6 +1139,9 @@ void SwitchToMode(SwitchMode new_mode) /* Update the local company for a loaded game. It is either always * company #1 (eg 0) or in the case of a dedicated server a spectator */ SetLocalCompany(_network_dedicated ? COMPANY_SPECTATOR : COMPANY_FIRST); + if (_ctrl_pressed && !_network_dedicated) { + DoCommandP(0, PM_PAUSED_NORMAL, 1, CMD_PAUSE); + } /* Execute the game-start script */ IConsoleCmdExec("exec scripts/game_start.scr 0"); /* Decrease pause counter (was increased from opening load dialog) */