(svn r8755) -Fix
Abbreviate GetAirport(st->airport_type) to st->Airport()
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#ifndef STATION_H
|
||||
#define STATION_H
|
||||
|
||||
#include "airport.h"
|
||||
#include "player.h"
|
||||
#include "oldpool.h"
|
||||
#include "sprite.h"
|
||||
@@ -112,6 +113,12 @@ struct Station {
|
||||
return type == RoadStop::BUS ? bus_stops : truck_stops;
|
||||
}
|
||||
|
||||
const AirportFTAClass *Airport() const
|
||||
{
|
||||
assert(airport_tile != 0);
|
||||
return GetAirport(airport_type);
|
||||
}
|
||||
|
||||
TileIndex xy;
|
||||
RoadStop *bus_stops;
|
||||
RoadStop *truck_stops;
|
||||
|
Reference in New Issue
Block a user