(svn r8755) -Fix

Abbreviate GetAirport(st->airport_type) to st->Airport()
This commit is contained in:
tron
2007-02-16 09:38:43 +00:00
parent 6c17cd4c46
commit 87e03c7aa8
7 changed files with 24 additions and 25 deletions

View File

@@ -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;