From b2095f37ac42bb2676e110a57ade0fd3b6d6f6f5 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Thu, 17 Apr 2008 06:52:56 +0000 Subject: (svn r12746) -Codechange: Add map storage for station animation frame --- src/station_map.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/station_map.h') diff --git a/src/station_map.h b/src/station_map.h index e06221bab..0c255a942 100644 --- a/src/station_map.h +++ b/src/station_map.h @@ -68,6 +68,18 @@ static inline void SetStationGfx(TileIndex t, StationGfx gfx) _m[t].m5 = gfx; } +static inline uint8 GetStationAnimationFrame(TileIndex t) +{ + assert(IsTileType(t, MP_STATION)); + return _me[t].m7; +} + +static inline void SetStationAnimationFrame(TileIndex t, uint8 frame) +{ + assert(IsTileType(t, MP_STATION)); + _me[t].m7 = frame; +} + static inline bool IsRailwayStation(TileIndex t) { return GetStationType(t) == STATION_RAIL; -- cgit v1.2.3-54-g00ecf