summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();