forked from mirror/OpenTTD
(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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user