diff options
author | rubidium <rubidium@openttd.org> | 2009-07-21 17:14:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-21 17:14:05 +0000 |
commit | f7b3067fb3b0e3620e8198119e0e9644cedd6cdd (patch) | |
tree | b6fce93c9fff141cd8362b9cc28561f38db7930e /src/vehicle_gui.cpp | |
parent | 0658d6cb3d649c2e4ef9a8ebb1ae1440ae18e87d (diff) | |
download | openttd-f7b3067fb3b0e3620e8198119e0e9644cedd6cdd.tar.xz |
(svn r16901) -Fix [FS#3046] (rpbs): when marking trains stuck don't reset the unload counter/stuck when the vehicle is unloading. It'll be automatically reset once the vehicle wants to leave the station
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 0f0c353f1..6a39125aa 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1916,7 +1916,7 @@ struct VehicleViewWindow : Window { } else { // no train str = STR_VEHICLE_STATUS_STOPPED; } - } else if (v->type == VEH_TRAIN && HasBit(Train::From(v)->flags, VRF_TRAIN_STUCK)) { + } else if (v->type == VEH_TRAIN && HasBit(Train::From(v)->flags, VRF_TRAIN_STUCK) && !v->current_order.IsType(OT_LOADING)) { str = STR_TRAIN_STUCK; } else { // vehicle is in a "normal" state, show current order switch (v->current_order.GetType()) { |