diff options
author | tron <tron@openttd.org> | 2006-03-24 08:55:08 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-24 08:55:08 +0000 |
commit | f6285a659c0457b2b468d53885a583e126a07302 (patch) | |
tree | 4f245f2fb33365183177a0e7de46103b9c2464d3 /aircraft_gui.c | |
parent | 8ce4bdfad969dd1d81ad3ab7d1a09dabf0f7a872 (diff) | |
download | openttd-f6285a659c0457b2b468d53885a583e126a07302.tar.xz |
(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the station from a tile
Diffstat (limited to 'aircraft_gui.c')
-rw-r--r-- | aircraft_gui.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/aircraft_gui.c b/aircraft_gui.c index 398bb1fc9..bed7ace18 100644 --- a/aircraft_gui.c +++ b/aircraft_gui.c @@ -4,6 +4,7 @@ #include "openttd.h" #include "debug.h" #include "functions.h" +#include "station_map.h" #include "table/sprites.h" #include "table/strings.h" #include "map.h" @@ -650,7 +651,7 @@ static void DrawAircraftDepotWindow(Window *w) } SetVScrollCount(w, (num + w->hscroll.cap - 1) / w->hscroll.cap); - SetDParam(0, _m[tile].m2); + SetDParam(0, GetStationIndex(tile)); DrawWindowWidgets(w); x = 2; |