# HG changeset patch # User rubidium # Date 1196631344 0 # Node ID c171c650d1e39c849d3e7dad07b578b546a23946 # Parent d1f1f351c606b43acac075375c741d93c2a78428 (svn r11562) -Fix [FS#1503] (r11546): aircraft sometimes stopped mid-air when the airport got destroyed. diff -r d1f1f351c606 -r c171c650d1e3 src/aircraft_cmd.cpp --- a/src/aircraft_cmd.cpp Sun Dec 02 20:13:12 2007 +0000 +++ b/src/aircraft_cmd.cpp Sun Dec 02 21:35:44 2007 +0000 @@ -1044,7 +1044,7 @@ /* Jump into our "holding pattern" state machine if possible */ if (v->u.air.pos >= afc->nofelements) { v->u.air.pos = v->u.air.previous_pos = AircraftGetEntryPoint(v, afc); - } else { + } else if (v->u.air.targetairport != v->current_order.dest) { /* If not possible, just get out of here fast */ v->u.air.state = FLYING; UpdateAircraftCache(v);