1
0
Fork 0

(svn r24575) -Add: ScriptController::Break() now also pauses the game (and not only the script)

release/1.3
zuu 2012-10-05 19:16:23 +00:00
parent 4f40acded0
commit d39a50e76e
1 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,10 @@
/* Inform script developer that his script has been paused and /* Inform script developer that his script has been paused and
* needs manual action to continue. */ * needs manual action to continue. */
ShowAIDebugWindow(ScriptObject::GetRootCompany()); 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) /* static */ void ScriptController::Print(bool error_msg, const char *message)