diff options
author | peter1138 <peter1138@openttd.org> | 2009-03-10 18:54:33 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2009-03-10 18:54:33 +0000 |
commit | 733c0c5c5b168949046e6a2445cd884f0116ce68 (patch) | |
tree | e429dbbf8a0a51f0e332fd3150c3d14cf07ceee1 /src | |
parent | f45e3b306850405d5f32fc184cc3dfd3a31ed6cc (diff) | |
download | openttd-733c0c5c5b168949046e6a2445cd884f0116ce68.tar.xz |
(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.
Diffstat (limited to 'src')
-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 fc3307218..9f03f0d86 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -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); |