(svn r19992) -Fix [FS#3878]: Clear force_proceed when entering depots and when loading.

-Fix (r18515): Resetting of force_proceed on manual stopping did not work.
This commit is contained in:
frosch
2010-06-16 20:27:59 +00:00
parent 350617efdd
commit 604971bdb2
2 changed files with 7 additions and 2 deletions

View File

@@ -1061,6 +1061,7 @@ void VehicleEnterDepot(Vehicle *v)
UpdateSignalsOnSegment(t->tile, INVALID_DIAGDIR, t->owner);
t->wait_counter = 0;
t->force_proceed = 0;
ClrBit(t->flags, VRF_TOGGLE_REVERSE);
t->ConsistChanged(true);
break;
@@ -1082,6 +1083,7 @@ void VehicleEnterDepot(Vehicle *v)
break;
default: NOT_REACHED();
}
SetWindowDirty(WC_VEHICLE_VIEW, v->index);
if (v->type != VEH_TRAIN) {
/* Trains update the vehicle list when the first unit enters the depot and calls VehicleEnterDepot() when the last unit enters.