Use the correct camera reference in flight.

Camera.main is not reliable, because while initially in flight it
points to the flight camera (probably by chance), as soon as you
go to map mode it switches to some UI camera and stays on it, and
the PAPI lights stop making any sense whatsoever.