(svn r7692) -Fix: OpenTTD didn't compile without network enabled (newgrf sync code)

This commit is contained in:
Darkvater
2006-12-31 11:12:49 +00:00
parent 1814212dc7
commit ba25cf7def
3 changed files with 10 additions and 1 deletions

View File

@@ -844,7 +844,10 @@ int32 CmdPlayerCtrl(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (!_networking) return CMD_ERROR;
/* Has the network client a correct ClientID? */
if (!(flags & DC_EXEC) || cid >= MAX_CLIENT_INFO) return 0;
if (!(flags & DC_EXEC)) return 0;
#ifdef ENABLE_NETWORK
if (cid >= MAX_CLIENT_INFO) return 0;
#endif /* ENABLE_NETWORK */
/* Delete multiplayer progress bar */
DeleteWindowById(WC_NETWORK_STATUS_WINDOW, 0);