summaryrefslogtreecommitdiff
path: root/station.h
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-11-14 14:10:03 +0000
committerdarkvater <darkvater@openttd.org>2004-11-14 14:10:03 +0000
commitccc496ba2ce07be7bd8faf0a084e983dbed5e80b (patch)
treec98b22919e336453a225758147c78c898731875e /station.h
parent5663926aaf2ccbc520cd2df08738e4a6b95229d3 (diff)
downloadopenttd-ccc496ba2ce07be7bd8faf0a084e983dbed5e80b.tar.xz
(svn r591) -newgrf: Store whole struct StationSpec in SetCustomStation(), not just the rendering data. This will be needed for variational stationspecs (pasky).
Diffstat (limited to 'station.h')
-rw-r--r--station.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/station.h b/station.h
index 826e20961..73ac8f8f7 100644
--- a/station.h
+++ b/station.h
@@ -108,8 +108,16 @@ typedef struct DrawTileSprites {
#define foreach_draw_tile_seq(idx, list) for (idx = list; ((byte) idx->delta_x) != 0x80; idx++)
-void SetCustomStation(uint32 classid, byte stid, DrawTileSprites *data, byte tiles);
-DrawTileSprites *GetCustomStation(uint32 classid, byte stid);
+
+struct StationSpec {
+ int globalidx;
+ uint32 classid;
+ byte tiles;
+ DrawTileSprites renderdata[8];
+};
+
+void SetCustomStation(byte stid, struct StationSpec *spec);
+DrawTileSprites *GetCustomStationRenderdata(uint32 classid, byte stid);
int GetCustomStationsCount(uint32 classid);
#endif /* STATION_H */