# HG changeset patch # User zuu # Date 2012-10-05 19:16:23 # Node ID 956473a8e0a3d5721c6bf84bb83c8268aa15fc16 # Parent 5030789609dd29f5aced1f3f95509ded8654b072 (svn r24575) -Add: ScriptController::Break() now also pauses the game (and not only the script) diff --git a/src/script/api/script_controller.cpp b/src/script/api/script_controller.cpp --- 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)