From c4a88ce0225a57243a79e28d133c2ecd884bee68 Mon Sep 17 00:00:00 2001 From: yexo Date: Thu, 18 Mar 2010 21:02:20 +0000 Subject: (svn r19455) -Codechange: split all airport information in Station to a seperate class --- src/newgrf_engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/newgrf_engine.cpp') diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp index 741d52a8d..e3852fe80 100644 --- a/src/newgrf_engine.cpp +++ b/src/newgrf_engine.cpp @@ -196,7 +196,7 @@ static byte MapAircraftMovementState(const Aircraft *v) const Station *st = GetTargetAirportIfValid(v); if (st == NULL) return AMS_TTDP_FLIGHT_TO_TOWER; - const AirportFTAClass *afc = st->Airport(); + const AirportFTAClass *afc = st->airport.GetFTA(); uint16 amdflag = afc->MovingData(v->pos)->flag; switch (v->state) { @@ -600,7 +600,7 @@ static uint32 VehicleGetVariable(const ResolverObject *object, byte variable, by const Station *st = GetTargetAirportIfValid(Aircraft::From(v)); if (st != NULL && st->airport.tile != INVALID_TILE) { - airporttype = st->GetAirportSpec()->ttd_airport_type; + airporttype = st->airport.GetSpec()->ttd_airport_type; } return (altitude << 8) | airporttype; -- cgit v1.2.3-54-g00ecf