From 4f40acded090ac3c7cfe12e4e99841a6d2312308 Mon Sep 17 00:00:00 2001 From: zuu Date: Fri, 5 Oct 2012 19:13:44 +0000 Subject: (svn r24574) -Change: remove undocumented return value of ScriptController::Break() --- src/script/api/script_controller.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/script/api/script_controller.cpp') diff --git a/src/script/api/script_controller.cpp b/src/script/api/script_controller.cpp index f74923739..56241dbe2 100644 --- a/src/script/api/script_controller.cpp +++ b/src/script/api/script_controller.cpp @@ -44,9 +44,9 @@ 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(); @@ -57,8 +57,6 @@ /* Inform script developer that his script has been paused and * needs manual action to continue. */ ShowAIDebugWindow(ScriptObject::GetRootCompany()); - - return true; } /* static */ void ScriptController::Print(bool error_msg, const char *message) -- cgit v1.2.3-54-g00ecf