diff options
author | rubidium <rubidium@openttd.org> | 2009-11-12 17:44:49 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-12 17:44:49 +0000 |
commit | 3f2dce581ea4ad3a07ab8ecc43f1acb29ef680ee (patch) | |
tree | d37235b1bfaba5d3175e3ea1a8675b662596cd79 /src | |
parent | 9059e4f85f4112cba38a6fb1741be46771b000d8 (diff) | |
download | openttd-3f2dce581ea4ad3a07ab8ecc43f1acb29ef680ee.tar.xz |
(svn r18050) -Codechange: disallow 'pause on join' paused when not in a network game
Diffstat (limited to 'src')
-rw-r--r-- | src/misc_cmd.cpp | 7 |
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) { |