(svn r2643) Get rid of some unnecessary casts

This commit is contained in:
tron
2005-07-19 21:49:35 +00:00
parent cea98113b7
commit 7269771544
9 changed files with 20 additions and 21 deletions

View File

@@ -845,7 +845,7 @@ int32 DoConvertTunnelBridgeRail(TileIndex tile, uint totype, bool exec)
// railway tunnel
if (!CheckTileOwnership(tile)) return CMD_ERROR;
if ( (uint)(_m[tile].m3 & 0xF) == totype) return CMD_ERROR;
if ((_m[tile].m3 & 0xFU) == totype) return CMD_ERROR;
endtile = CheckTunnelBusy(tile, &length);
if (endtile == INVALID_TILE) return CMD_ERROR;
@@ -864,7 +864,7 @@ int32 DoConvertTunnelBridgeRail(TileIndex tile, uint totype, bool exec)
return CMD_ERROR;
// tile is already of requested type?
if ( (uint)(_m[tile].m3 & 0xF) == totype) return CMD_ERROR;
if ((_m[tile].m3 & 0xFU) == totype) return CMD_ERROR;
// change type.
if (exec) {
_m[tile].m3 = (_m[tile].m3 & 0xF0) + totype;
@@ -893,7 +893,7 @@ int32 DoConvertTunnelBridgeRail(TileIndex tile, uint totype, bool exec)
return CMD_ERROR;
}
if ( (uint)(_m[tile].m3 & 0xF) == totype) return CMD_ERROR;
if ((_m[tile].m3 & 0xFU) == totype) return CMD_ERROR;
cost = 0;
do {
if (exec) {