(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
This commit is contained in:
18
station.h
18
station.h
@@ -89,4 +89,22 @@ VARDEF bool _global_station_sort_dirty;
|
||||
void GetProductionAroundTiles(uint *produced, uint tile, int w, int h);
|
||||
void GetAcceptanceAroundTiles(uint *accepts, uint tile, int w, int h);
|
||||
uint GetStationPlatforms(Station *st, uint tile);
|
||||
|
||||
|
||||
typedef struct DrawTileSeqStruct {
|
||||
int8 delta_x;
|
||||
int8 delta_y;
|
||||
int8 delta_z;
|
||||
byte width,height;
|
||||
byte unk; // 'depth', just z-size; TODO: rename
|
||||
uint32 image;
|
||||
} DrawTileSeqStruct;
|
||||
|
||||
typedef struct DrawTileSprites {
|
||||
SpriteID ground_sprite;
|
||||
DrawTileSeqStruct const *seq;
|
||||
} DrawTileSprites;
|
||||
|
||||
#define foreach_draw_tile_seq(idx, list) for (idx = list; ((byte) idx->delta_x) != 0x80; idx++)
|
||||
|
||||
#endif /* STATION_H */
|
||||
|
||||
Reference in New Issue
Block a user