equal
deleted
inserted
replaced
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 |