From 733c0c5c5b168949046e6a2445cd884f0116ce68 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 10 Mar 2009 18:54:33 +0000 Subject: [PATCH] (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. --- src/aircraft_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index fc33072185..9f03f0d868 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);