summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-03-10 18:54:33 +0000
committerpeter1138 <peter1138@openttd.org>2009-03-10 18:54:33 +0000
commit812f6b8676fddf6bd391337dbbefce060992fbe5 (patch)
treee429dbbf8a0a51f0e332fd3150c3d14cf07ceee1 /src
parent08862489f19ceb9aa593428ddaa151af8052286b (diff)
downloadopenttd-812f6b8676fddf6bd391337dbbefce060992fbe5.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.cpp2
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);