diff options
author | peter1138 <peter1138@openttd.org> | 2006-05-06 22:30:36 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-05-06 22:30:36 +0000 |
commit | 15640ca7da7241224dd0454d5c1ea7a820988544 (patch) | |
tree | 10a5c55c589939f2d1b143474fb880d9b6dbcec3 /newgrf_station.h | |
parent | 0a532f8491ce2ce1fa8e2d8d664079a91f0a8607 (diff) | |
download | openttd-15640ca7da7241224dd0454d5c1ea7a820988544.tar.xz |
(svn r4761) - Newstations: support platform information in variable 10 (callback parameter 1) when building a station
Diffstat (limited to 'newgrf_station.h')
-rw-r--r-- | newgrf_station.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/newgrf_station.h b/newgrf_station.h index 5be5b669e..4ff686b37 100644 --- a/newgrf_station.h +++ b/newgrf_station.h @@ -96,6 +96,9 @@ void SetCustomStationSpec(StationSpec *statspec); const StationSpec *GetCustomStationSpec(StationClassID sclass, uint station); const StationSpec *GetCustomStationSpecByGrf(uint32 grfid, byte localidx); +/* Evaluate a tile's position within a station, and return the result a bitstuffed format. */ +uint32 GetPlatformInfo(Axis axis, byte tile, int platforms, int length, int x, int y, bool centred); + /* Get sprite offset for a given custom station and station structure (may be * NULL - that means we are in a build dialog). The station structure is used * for variational sprite groups. */ |