mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r18050) -Codechange: disallow 'pause on join' paused when not in a network game
This commit is contained in:
parent
9059e4f85f
commit
3f2dce581e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user