(svn r20013) -Fix [FS#3890]: silence some warnings / take the advice of the warnings into account
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user