diff options
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r-- | tunnelbridge_cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c index 06d398ffa..135f7fd47 100644 --- a/tunnelbridge_cmd.c +++ b/tunnelbridge_cmd.c @@ -1311,14 +1311,14 @@ static uint32 GetTileTrackStatus_TunnelBridge(uint tile, TransportType mode) if ((m5 & 0xF0) == 0) { /* This is a tunnel */ - if (((m5 & 0xC) >> 2) == mode) { + if (((m5 & 0xCU) >> 2) == mode) { /* Tranport in the tunnel is compatible */ return m5&1 ? 0x202 : 0x101; } } else if (m5 & 0x80) { /* This is a bridge */ result = 0; - if (((m5 & 0x6) >> 1) == mode) { + if (((m5 & 0x6U) >> 1) == mode) { /* Transport over the bridge is compatible */ result = m5&1 ? 0x202 : 0x101; } @@ -1334,7 +1334,7 @@ static uint32 GetTileTrackStatus_TunnelBridge(uint tile, TransportType mode) return result; } else { /* Transport underneath */ - if ((m5 & 0x18) >> 3 != mode) + if ((m5 & 0x18U) >> 3 != mode) /* Incompatible transport underneath */ return result; } |