From ad30a3c4caaad54f1b0b279bb0fc78254016efe3 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 9 Feb 2009 22:49:28 +0000 Subject: (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... --- src/newgrf_station.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newgrf_station.h') 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); -- cgit v1.2.3-54-g00ecf