(svn r20013) -Fix [FS#3890]: silence some warnings / take the advice of the warnings into account

This commit is contained in:
rubidium
2010-06-23 14:38:17 +00:00
parent 9683b87466
commit 52154e097c
4 changed files with 14 additions and 5 deletions

View File

@@ -591,7 +591,7 @@ CommandCost DoCommandPInternal(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd,
if (tile != 0 && (tile >= MapSize() || (!IsValidTile(tile) && (cmd_flags & CMD_ALL_TILES) == 0))) return_dcpi(CMD_ERROR, false);
/* Always execute server and spectator commands as spectator */
bool exec_as_spectator = cmd_flags & (CMD_SPECTATOR | CMD_SERVER);
bool exec_as_spectator = (cmd_flags & (CMD_SPECTATOR | CMD_SERVER)) != 0;
/* If the company isn't valid it may only do server command or start a new company!
* The server will ditch any server commands a client sends to it, so effectively