summaryrefslogtreecommitdiff
path: root/station.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-14 08:09:57 +0000
committertron <tron@openttd.org>2005-11-14 08:09:57 +0000
commit833032adc09ce95c68d4a4b412221a0b3f88e670 (patch)
tree80b15078ff5a1c09815ccb23f4c9e7629774dae4 /station.h
parent357aba747578ecd3b8cc1a29bc740634211ada37 (diff)
downloadopenttd-833032adc09ce95c68d4a4b412221a0b3f88e670.tar.xz
(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT
Diffstat (limited to 'station.h')
-rw-r--r--station.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/station.h b/station.h
index 6fa329292..9b35122b4 100644
--- a/station.h
+++ b/station.h
@@ -222,8 +222,8 @@ static inline bool IsCompatibleTrainStationTile(TileIndex tile, TileIndex ref)
assert(IsTrainStationTile(ref));
return
IsTrainStationTile(tile) &&
- (_m[tile].m3 & 0x0F) == (_m[ref].m3 & 0x0F) && // same rail type?
- (_m[tile].m5 & 0x01) == (_m[ref].m5 & 0x01); // same direction?
+ GB(_m[tile].m3, 0, 4) == GB(_m[ref].m3, 0, 4) && // same rail type?
+ GB(_m[tile].m5, 0, 1) == GB(_m[ref].m5, 0, 1); // same direction?
}
static inline bool IsRoadStationTile(TileIndex tile) {