summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/misc_cmd.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/misc_cmd.cpp b/src/misc_cmd.cpp
index e43ed87a5..fe8acb664 100644
--- a/src/misc_cmd.cpp
+++ b/src/misc_cmd.cpp
@@ -345,10 +345,15 @@ CommandCost CmdPause(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2,
switch (p1) {
case PM_PAUSED_SAVELOAD:
case PM_PAUSED_ERROR:
- case PM_PAUSED_JOIN:
case PM_PAUSED_NORMAL:
break;
+#ifdef ENABLE_NETWORK
+ case PM_PAUSED_JOIN:
+ if (!_networking) return CMD_ERROR;
+ break;
+#endif
+
default: return CMD_ERROR;
}
if (flags & DC_EXEC) {