mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(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:
parent
8d423137fd
commit
8254b5a7e6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user