Mercurial > hg > openttd
changeset 8778:36ff24ef4f6e draft
(svn r12477) -Fix [FS#1883]: timetable times for aircraft were always doubled.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 28 Mar 2008 18:43:01 +0000 |
parents | b8c9838f0585 |
children | 66a3a3c03566 |
files | src/aircraft_cmd.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -2132,7 +2132,6 @@ static void AircraftEventHandler(Vehicle *v, int loop) { v->tick_counter++; - v->current_order_time++; if (v->vehstatus & VS_CRASHED) { HandleCrashedAircraft(v); @@ -2169,6 +2168,8 @@ AgeAircraftCargo(this); + this->current_order_time++; + for (uint i = 0; i != 2; i++) { AircraftEventHandler(this, i); if (this->type != VEH_AIRCRAFT) // In case it was deleted