diff options
author | peter1138 <peter1138@openttd.org> | 2009-02-09 22:49:28 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2009-02-09 22:49:28 +0000 |
commit | ad30a3c4caaad54f1b0b279bb0fc78254016efe3 (patch) | |
tree | 5980ebeefe7c6c93c1f872cad92d616b259b03dc /src/newgrf_station.h | |
parent | d846eef0b68474970d7ffe5f1d667d866ddff7a8 (diff) | |
download | openttd-ad30a3c4caaad54f1b0b279bb0fc78254016efe3.tar.xz |
(svn r15436) -Codechange: Return index of station spec within station class as a return parameter of GetCustomStationSpecByGrf(), as the index is already known. Saves on an extra loop and an extern...
Diffstat (limited to 'src/newgrf_station.h')
-rw-r--r-- | src/newgrf_station.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_station.h b/src/newgrf_station.h index 45552e20b..9af801f05 100644 --- a/src/newgrf_station.h +++ b/src/newgrf_station.h @@ -118,7 +118,7 @@ uint GetNumCustomStations(StationClassID sclass); void SetCustomStationSpec(StationSpec *statspec); const StationSpec *GetCustomStationSpec(StationClassID sclass, uint station); -const StationSpec *GetCustomStationSpecByGrf(uint32 grfid, byte localidx); +const StationSpec *GetCustomStationSpecByGrf(uint32 grfid, byte localidx, int *index); /* 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); |