summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-06-16 20:27:59 +0000
committerfrosch <frosch@openttd.org>2010-06-16 20:27:59 +0000
commit94efc4c3b9b519cf7377b0ae9a40ed2c59058e58 (patch)
treebca73387a9d6588a0538944d5a679f2054004b3f /src/vehicle.cpp
parent03c87faea10455bb973c583678562f43b97ba834 (diff)
downloadopenttd-94efc4c3b9b519cf7377b0ae9a40ed2c59058e58.tar.xz
(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.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 0c0e33a59..ca7544b59 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -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.