summaryrefslogtreecommitdiff
path: root/station_map.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-08 05:24:29 +0000
committercelestar <celestar@openttd.org>2006-04-08 05:24:29 +0000
commit9760d3dccf127d8462790d7296ef50551de12751 (patch)
tree3105e9a752ef277e9095134e5f1345e798696264 /station_map.h
parent4fdb25e65b9cae42cf75f08e7318f82b7ac991f5 (diff)
downloadopenttd-9760d3dccf127d8462790d7296ef50551de12751.tar.xz
(svn r4319) -Codechange: Station map accessors
Diffstat (limited to 'station_map.h')
-rw-r--r--station_map.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/station_map.h b/station_map.h
index 9c608af9b..56cd8d7b0 100644
--- a/station_map.h
+++ b/station_map.h
@@ -223,6 +223,12 @@ static inline uint GetCustomStationSprite(TileIndex t)
return _m[t].m4;
}
+static inline byte GetStationGfx(TileIndex t)
+{
+ assert(IsTileType(t, MP_STATION));
+ return _m[t].m5;
+}
+
static inline void MakeStation(TileIndex t, Owner o, StationID sid, byte m5)
{