Fix infinite loop ??? and have fewer glitches on flight.c