n8rzz/atc

Arrivals' landings cause "waiting" departures to be deleted

Closed this issue · 3 comments

For some reason, when the aircraft land and should be removed, the call of this.aircraft_remove(aircraft) in AircraftController.js:224 also ends up partially removing the other aircraft...

AirportController.removeAircraftFromAllRunwayQueues() is where this is breaking. For some reason that isn't obvious at all by looking at it, the aircraft that's next in the queue is getting messed up when we try to remove the arrival from the queue (which is kinda unnecessary anyway).

Fixed via #250.