src/newgrf_engine.cpp
changeset 6175 26674ca57aac
parent 5860 7fdc9b423ba1
child 6254 abc6ad7c035c
child 6346 4aad704385e1
equal deleted inserted replaced
6174:7871038cdebb 6175:26674ca57aac
   286  * (VarAction 2 Variable 0xE2)
   286  * (VarAction 2 Variable 0xE2)
   287  */
   287  */
   288 static byte MapAircraftMovementState(const Vehicle *v)
   288 static byte MapAircraftMovementState(const Vehicle *v)
   289 {
   289 {
   290 	const Station *st = GetStation(v->u.air.targetairport);
   290 	const Station *st = GetStation(v->u.air.targetairport);
   291 	byte amdflag = GetAirportMovingData(st->airport_type, v->u.air.pos)->flag;
   291 	byte amdflag = GetAirport(st->airport_type)->MovingData(v->u.air.pos)->flag;
   292 
   292 
   293 	switch (v->u.air.state) {
   293 	switch (v->u.air.state) {
   294 		case HANGAR:
   294 		case HANGAR:
   295 			/* The international airport is a special case as helicopters can land in
   295 			/* The international airport is a special case as helicopters can land in
   296 			 * front of the hanger. Helicopters also change their air.state to
   296 			 * front of the hanger. Helicopters also change their air.state to