(svn r24060) -Fix [FS#5123] (r23504): Do not freeze aircraft mid-flight when skipping to an out-of-range destination.

This commit is contained in:
michi_cc 2012-03-25 11:29:33 +00:00
parent 8d423137fd
commit 8254b5a7e6
1 changed files with 1 additions and 1 deletions

View File

@ -1894,7 +1894,7 @@ static bool AircraftEventHandler(Aircraft *v, int loop)
if (v->current_order.IsType(OT_LOADING) || v->current_order.IsType(OT_LEAVESTATION)) return true;
if (v->state == FLYING) {
if (v->state >= ENDTAKEOFF && v->state <= HELIENDLANDING) {
/* If we are flying, unconditionally clear the 'dest too far' state. */
AircraftHandleDestTooFar(v, false);
} else if (v->acache.cached_max_range_sqr != 0) {