diff options
author | smatz <smatz@openttd.org> | 2009-06-24 17:39:54 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-06-24 17:39:54 +0000 |
commit | 8343340acb5bdb40555e04f40aac567d6e583bb8 (patch) | |
tree | 29b17ad863977abd3d3417dd8bbf84e01cfc261d /src/build_vehicle_gui.cpp | |
parent | b18bf87c9081c3d202897e9c3ed282729db415a4 (diff) | |
download | openttd-8343340acb5bdb40555e04f40aac567d6e583bb8.tar.xz |
(svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile()
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r-- | src/build_vehicle_gui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp index eea5d5585..763f2022f 100644 --- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -6,6 +6,7 @@ #include "roadveh.h" #include "ship.h" #include "aircraft.h" +#include "station_base.h" #include "articulated_vehicles.h" #include "textbuf_gui.h" #include "command_func.h" @@ -843,7 +844,7 @@ struct BuildVehicleWindow : Window { break; case VEH_AIRCRAFT: this->filter.flags = - tile == INVALID_TILE ? AirportFTAClass::ALL : GetStationByTile(tile)->Airport()->flags; + tile == INVALID_TILE ? AirportFTAClass::ALL : Station::GetByTile(tile)->Airport()->flags; break; } this->SetupWindowStrings(type); @@ -1023,7 +1024,7 @@ struct BuildVehicleWindow : Window { this->eng_list.Clear(); - const Station *st = this->listview_mode ? NULL : GetStationByTile(this->window_number); + const Station *st = this->listview_mode ? NULL : Station::GetByTile(this->window_number); /* Make list of all available planes. * Also check to see if the previously selected plane is still available, |