diff options
Diffstat (limited to 'rail_map.h')
-rw-r--r-- | rail_map.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rail_map.h b/rail_map.h index 43166d671..44a42f9aa 100644 --- a/rail_map.h +++ b/rail_map.h @@ -81,6 +81,11 @@ static inline RailType GetRailTypeCrossing(TileIndex t) return (RailType)GB(_m[t].m4, 0, 4); } +static inline RailType GetRailTypeOnBridge(TileIndex t) +{ + return (RailType)GB(_m[t].m3, 4, 4); +} + static inline void SetRailType(TileIndex t, RailType r) { SB(_m[t].m3, 0, 4, r); @@ -92,6 +97,11 @@ static inline void SetRailTypeCrossing(TileIndex t, RailType r) SB(_m[t].m4, 0, 4, r); } +static inline void SetRailTypeOnBridge(TileIndex t, RailType r) +{ + SB(_m[t].m3, 4, 4, r); +} + /** These are used to specify a single track. * Can be translated to a trackbit with TrackToTrackbit */ |