# HG changeset patch
# User peter1138
# Date 1208415176 0
# Node ID 701809dd5b33df274467241f896429fe595c521a
# Parent 3993bae3bfb8399584256422088740402c6ba0e4
(svn r12746) -Codechange: Add map storage for station animation frame
diff -r 3993bae3bfb8 -r 701809dd5b33 docs/landscape.html
--- a/docs/landscape.html Thu Apr 17 00:44:20 2008 +0000
+++ b/docs/landscape.html Thu Apr 17 06:52:56 2008 +0000
@@ -899,6 +899,7 @@
m6 bits 5..3: the station type (rail, airport, truck, bus, oilrig, dock, buoy)
m6 bit 2: 1 when a drive through road stop is built over a town owned road, otherwise 0
m6 bits 1..0 : Tropic zone definition
+ m7: animation frame
diff -r 3993bae3bfb8 -r 701809dd5b33 docs/landscape_grid.html
--- a/docs/landscape_grid.html Thu Apr 17 00:44:20 2008 +0000
+++ b/docs/landscape_grid.html Thu Apr 17 06:52:56 2008 +0000
@@ -198,7 +198,7 @@
XXXX XXXX |
XXXX XXXX |
OOXX XOXX |
- OOOO OOOO |
+ XXXX XXXX |
road stop |
diff -r 3993bae3bfb8 -r 701809dd5b33 src/station_map.h
--- a/src/station_map.h Thu Apr 17 00:44:20 2008 +0000
+++ b/src/station_map.h Thu Apr 17 06:52:56 2008 +0000
@@ -68,6 +68,18 @@
_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;