mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r15665) -Fix (r8973): Handling of aircraft crash counter did not take account of the reduced number of calls (from 6 down to 2) to the aircraft event handler, resulting in crashed aircraft taking three times longer than they should to clear. Compensate by increasing the counter by 3 on every call instead of 1.
This commit is contained in:
parent
f45e3b3068
commit
733c0c5c5b
@ -1156,7 +1156,7 @@ static bool AircraftController(Vehicle *v)
|
||||
|
||||
static void HandleCrashedAircraft(Vehicle *v)
|
||||
{
|
||||
v->u.air.crashed_counter++;
|
||||
v->u.air.crashed_counter += 3;
|
||||
|
||||
Station *st = GetTargetAirportIfValid(v);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user