(svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile()
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user