src/aircraft_cmd.cpp
changeset 8499 43cc70cd76d8
parent 8486 27a9903a60cb
child 8604 8afdd9877afd
--- 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);