summaryrefslogtreecommitdiff
path: root/tunnelbridge_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-19 21:49:35 +0000
committertron <tron@openttd.org>2005-07-19 21:49:35 +0000
commit7269771544af65ddb0c69d338253bd0a5940caac (patch)
tree02f05ccb111e772991e342a10812e26ae8d1a118 /tunnelbridge_cmd.c
parentcea98113b7f2786ee1847c06d36198abfbfb6bb6 (diff)
downloadopenttd-7269771544af65ddb0c69d338253bd0a5940caac.tar.xz
(svn r2643) Get rid of some unnecessary casts
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r--tunnelbridge_cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index d2d4a67e0..8da2c779c 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -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) {