summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
Diffstat (limited to 'src/script')
-rw-r--r--src/script/api/script_controller.cpp4
1 files changed, 4 insertions, 0 deletions
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)