diff options
author | rubidium <rubidium@openttd.org> | 2007-12-02 21:35:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-12-02 21:35:44 +0000 |
commit | f758c337c7b600ff41fb57dd653e1c1e80af1734 (patch) | |
tree | cee21002f14652cb7ef7234081f0e4f93c7bbdaf /src/aircraft_cmd.cpp | |
parent | 5da6900c3f1afcb9b2349bb3b67f4e4823c25a7c (diff) | |
download | openttd-f758c337c7b600ff41fb57dd653e1c1e80af1734.tar.xz |
(svn r11562) -Fix [FS#1503] (r11546): aircraft sometimes stopped mid-air when the airport got destroyed.
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r-- | src/aircraft_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index df79cb73d..b333746b2 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -1044,7 +1044,7 @@ static bool AircraftController(Vehicle *v) /* 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); |