diff options
Diffstat (limited to 'src/rail_map.h')
-rw-r--r-- | src/rail_map.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rail_map.h b/src/rail_map.h index a6077cf0d..cf4e6e861 100644 --- a/src/rail_map.h +++ b/src/rail_map.h @@ -598,6 +598,15 @@ static inline bool IsSnowRailGround(TileIndex t) return GetRailGroundType(t) == RAIL_GROUND_ICE_DESERT; } +static inline void UpdateStat(TileIndex t, bool on_track) +{ + _me[t].m7 = _me[t].m7 << 1 | !!on_track; +} + +static inline byte GetStat(TileIndex t) +{ + return _me[t].m7; +} static inline void MakeRailNormal(TileIndex t, Owner o, TrackBits b, RailType r) { |