summaryrefslogtreecommitdiff
path: root/src/station_map.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-04-17 06:52:56 +0000
committerpeter1138 <peter1138@openttd.org>2008-04-17 06:52:56 +0000
commit757d61b22f51919149dc01f23fcf9665f0b1622d (patch)
tree242c8a648279c13f672e7bb5f15a838268b0b555 /src/station_map.h
parent966e476df839bf259a7673a8c87f7bdf456dabce (diff)
downloadopenttd-757d61b22f51919149dc01f23fcf9665f0b1622d.tar.xz
(svn r12746) -Codechange: Add map storage for station animation frame
Diffstat (limited to 'src/station_map.h')
-rw-r--r--src/station_map.h12
1 files changed, 12 insertions, 0 deletions
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;