summaryrefslogtreecommitdiff
path: root/rail.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
commit7c694f25537097f380d7215082b42eea51e86815 (patch)
tree02f05ccb111e772991e342a10812e26ae8d1a118 /rail.c
parent4b1c5202640d5c741ebdda3b3775a337a1c36be8 (diff)
downloadopenttd-7c694f25537097f380d7215082b42eea51e86815.tar.xz
(svn r2643) Get rid of some unnecessary casts
Diffstat (limited to 'rail.c')
-rw-r--r--rail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rail.c b/rail.c
index a738ec344..c8fd26897 100644
--- a/rail.c
+++ b/rail.c
@@ -133,7 +133,7 @@ RailType GetTileRailType(TileIndex tile, Trackdir trackdir)
if ((_m[tile].m5 & 0xC6) == 0xC0 && ((DiagDirection)(_m[tile].m5 & 0x1)) == (exitdir & 0x1))
type = (_m[tile].m3 >> 4) & RAILTYPE_MASK;
/* under bridge (any type) */
- if ((_m[tile].m5 & 0xC0) == 0xC0 && ((uint)_m[tile].m5 & 0x1) != (exitdir & 0x1))
+ if ((_m[tile].m5 & 0xC0) == 0xC0 && (_m[tile].m5 & 0x1U) != (exitdir & 0x1))
type = _m[tile].m3 & RAILTYPE_MASK;
break;
default: