1
0
Fork 0

(svn r12477) -Fix [FS#1883]: timetable times for aircraft were always doubled.

release/0.7
rubidium 2008-03-28 18:43:01 +00:00
parent 93d59fe448
commit d51347a04d
1 changed files with 2 additions and 1 deletions

View File

@ -2132,7 +2132,6 @@ static bool AirportFindFreeHelipad(Vehicle *v, const AirportFTAClass *apc)
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 @@ void Aircraft::Tick()
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