summaryrefslogtreecommitdiff
path: root/src/script/api
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2012-09-21 21:00:32 +0000
committerzuu <zuu@openttd.org>2012-09-21 21:00:32 +0000
commit77347682db0299be97b3b12e4d24d9571497a5e4 (patch)
treef08ae0b4e84c3794006521b34e041e03b7ac5200 /src/script/api
parent46605e554ecdb9424e4b7529fefb65420747d2a0 (diff)
downloadopenttd-77347682db0299be97b3b12e4d24d9571497a5e4.tar.xz
(svn r24543) -Fix-ish (r24542): Removed unnecessary preprocessor directive
Diffstat (limited to 'src/script/api')
-rw-r--r--src/script/api/script_controller.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/script/api/script_controller.cpp b/src/script/api/script_controller.cpp
index 53ada04a6..e344f6edd 100644
--- a/src/script/api/script_controller.cpp
+++ b/src/script/api/script_controller.cpp
@@ -46,10 +46,7 @@
/* static */ bool ScriptController::Break(const char* message)
{
-#ifdef ENABLE_NETWORK
- if (!_network_dedicated) return false;
-#endif
- if (!_settings_client.gui.ai_developer_tools) return false;
+ if (!_network_dedicated || !_settings_client.gui.ai_developer_tools) return false;
ScriptObject::GetActiveInstance()->Pause();