diff options
author | zuu <zuu@openttd.org> | 2012-10-05 19:16:23 +0000 |
---|---|---|
committer | zuu <zuu@openttd.org> | 2012-10-05 19:16:23 +0000 |
commit | d39a50e76e723a3750c014ed3db8d6640d6ae5c1 (patch) | |
tree | e1b8ef8f6b51a37b5e4234e08ef39854fa83050f /src/script | |
parent | 4f40acded090ac3c7cfe12e4e99841a6d2312308 (diff) | |
download | openttd-d39a50e76e723a3750c014ed3db8d6640d6ae5c1.tar.xz |
(svn r24575) -Add: ScriptController::Break() now also pauses the game (and not only the script)
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/api/script_controller.cpp | 4 |
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) |