From d39a50e76e723a3750c014ed3db8d6640d6ae5c1 Mon Sep 17 00:00:00 2001 From: zuu Date: Fri, 5 Oct 2012 19:16:23 +0000 Subject: (svn r24575) -Add: ScriptController::Break() now also pauses the game (and not only the script) --- src/script/api/script_controller.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/script/api/script_controller.cpp b/src/script/api/script_controller.cpp index 56241dbe2..7ca0c7d46 100644 --- a/src/script/api/script_controller.cpp +++ b/src/script/api/script_controller.cpp @@ -57,6 +57,10 @@ /* Inform script developer that his script has been paused and * needs manual action to continue. */ ShowAIDebugWindow(ScriptObject::GetRootCompany()); + + if ((_pause_mode & PM_PAUSED_NORMAL) == PM_UNPAUSED) { + ScriptObject::DoCommand(0, PM_PAUSED_NORMAL, 1, CMD_PAUSE); + } } /* static */ void ScriptController::Print(bool error_msg, const char *message) -- cgit v1.2.3-54-g00ecf