diff options
author | darkvater <darkvater@openttd.org> | 2004-11-14 14:10:03 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2004-11-14 14:10:03 +0000 |
commit | ccc496ba2ce07be7bd8faf0a084e983dbed5e80b (patch) | |
tree | c98b22919e336453a225758147c78c898731875e /station.h | |
parent | 5663926aaf2ccbc520cd2df08738e4a6b95229d3 (diff) | |
download | openttd-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.h | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 */ |