mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-23 04:04:09 +01:00
(svn r24074) [1.2] -Backport from trunk:
- Fix: With certain versions of GCC and compiler flags the compiler could reorder some code badly causing the 32bpp depot flag not working [FS#5125] (r24063) - Fix: Do not freeze aircraft mid-flight when skipping to an out-of-range destination [FS#5123] (r24060) - Fix: Crash when timetabling a maximum travel speed of 0 [FS#5111] (r24053) - Fix: [NewGRF] Imported GRF sounds were inserted into the wrong slots [FS#5107] (r24052) - Fix: [NewGRF] Realsprites inside the action 11 block were not skipped correctly (r24050)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user