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

pull/155/head
zuu 12 years ago
parent 3606607580
commit ff34c73e91

@ -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)

Loading…
Cancel
Save