mirror of https://github.com/OpenTTD/OpenTTD
(svn r24574) -Change: remove undocumented return value of ScriptController::Break()
parent
a023c9ae68
commit
4f40acded0
|
@ -44,9 +44,9 @@
|
||||||
throw Script_Suspend(ticks, NULL);
|
throw Script_Suspend(ticks, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* static */ bool ScriptController::Break(const char* message)
|
/* static */ void ScriptController::Break(const char* message)
|
||||||
{
|
{
|
||||||
if (_network_dedicated || !_settings_client.gui.ai_developer_tools) return false;
|
if (_network_dedicated || !_settings_client.gui.ai_developer_tools) return;
|
||||||
|
|
||||||
ScriptObject::GetActiveInstance()->Pause();
|
ScriptObject::GetActiveInstance()->Pause();
|
||||||
|
|
||||||
|
@ -57,8 +57,6 @@
|
||||||
/* 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());
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* static */ void ScriptController::Print(bool error_msg, const char *message)
|
/* static */ void ScriptController::Print(bool error_msg, const char *message)
|
||||||
|
|
|
@ -114,7 +114,7 @@ public:
|
||||||
* @note gui.ai_developer_tools setting must be enabled or the break is
|
* @note gui.ai_developer_tools setting must be enabled or the break is
|
||||||
* ignored.
|
* ignored.
|
||||||
*/
|
*/
|
||||||
static bool Break(const char* message);
|
static void Break(const char* message);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When Squirrel triggers a print, this function is called.
|
* When Squirrel triggers a print, this function is called.
|
||||||
|
|
Loading…
Reference in New Issue