(svn r4642) - Codechange: reorganise airport.h and airport_movement.h to avoid having 8 copies of the airport FTAs, and make the enums used available elsewhere.

This commit is contained in:
2006-05-01 11:27:39 +00:00
parent 80a75e3573
commit d1fa0742a5
5 changed files with 83 additions and 81 deletions

View File

@@ -772,8 +772,7 @@ static bool AircraftController(Vehicle *v)
}
// get airport moving data
assert(v->u.air.pos < GetAirport(st->airport_type)->nofelements);
amd = &_airport_moving_datas[st->airport_type][v->u.air.pos];
amd = GetAirportMovingData(st->airport_type, v->u.air.pos);
// Helicopter raise
if (amd->flag & AMED_HELI_RAISE) {