File diff r14848:8e2ba5b203eb → r14849:27386629fac1
src/newgrf_engine.cpp
Show inline comments
 
@@ -193,13 +193,13 @@ enum {
 
 */
 
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) {
 
		case HANGAR:
 
			/* The international airport is a special case as helicopters can land in
 
			 * front of the hanger. Helicopters also change their air.state to
 
@@ -597,13 +597,13 @@ static uint32 VehicleGetVariable(const R
 
				uint16 altitude = v->z_pos - w->z_pos; // Aircraft height - shadow height
 
				byte airporttype = ATP_TTDP_LARGE;
 

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

	
 
		case 0x45: { // Curvature info