summaryrefslogtreecommitdiff
path: root/src/script/api
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2012-10-05 19:13:44 +0000
committerzuu <zuu@openttd.org>2012-10-05 19:13:44 +0000
commit4f40acded090ac3c7cfe12e4e99841a6d2312308 (patch)
tree9f88776326b79d1265b17aeaa8f67b35e3bbfabf /src/script/api
parenta023c9ae689105c1ece08d2f0e09a59840e6a732 (diff)
downloadopenttd-4f40acded090ac3c7cfe12e4e99841a6d2312308.tar.xz
(svn r24574) -Change: remove undocumented return value of ScriptController::Break()
Diffstat (limited to 'src/script/api')
-rw-r--r--src/script/api/script_controller.cpp6
-rw-r--r--src/script/api/script_controller.hpp2
2 files changed, 3 insertions, 5 deletions
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)
diff --git a/src/script/api/script_controller.hpp b/src/script/api/script_controller.hpp
index 9ee329124..f9eeed71b 100644
--- a/src/script/api/script_controller.hpp
+++ b/src/script/api/script_controller.hpp
@@ -114,7 +114,7 @@ public:
* @note gui.ai_developer_tools setting must be enabled or the break is
* ignored.
*/
- static bool Break(const char* message);
+ static void Break(const char* message);
/**
* When Squirrel triggers a print, this function is called.