summaryrefslogtreecommitdiff
path: root/src/newgrf_station.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-02-09 22:49:28 +0000
committerpeter1138 <peter1138@openttd.org>2009-02-09 22:49:28 +0000
commit4b1728079c40b5bdd9142761d2f80c7884a856fd (patch)
tree5980ebeefe7c6c93c1f872cad92d616b259b03dc /src/newgrf_station.h
parent5c8cf856136922426be87d778d525e024813648c (diff)
downloadopenttd-4b1728079c40b5bdd9142761d2f80c7884a856fd.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.h2
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);