(svn r18050) -Codechange: disallow 'pause on join' paused when not in a network game

This commit is contained in:
rubidium 2009-11-12 17:44:49 +00:00
parent 9059e4f85f
commit 3f2dce581e

View File

@ -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) {