summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatthijs <matthijs@openttd.org>2005-01-04 00:54:12 +0000
committermatthijs <matthijs@openttd.org>2005-01-04 00:54:12 +0000
commita3d687fadb7b3209564928a69c43ff38fb6f94e3 (patch)
treeffc6d6d67efa026a85fc1b50e6dd346042b4995c
parentd088cb6131e17f0ce1182af8ed023a67ce40a5ff (diff)
downloadopenttd-a3d687fadb7b3209564928a69c43ff38fb6f94e3.tar.xz
(svn r1367) -Fix: Full-Loading trains no longer get "lost" after a while (Hackykid)
-rw-r--r--train_cmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/train_cmd.c b/train_cmd.c
index 4700ab4d4..45f34285a 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -1718,6 +1718,7 @@ static void HandleTrainLoading(Vehicle *v, bool mode)
return;
if (v->current_order.flags & OF_FULL_LOAD && CanFillVehicle(v)) {
+ v->u.rail.days_since_order_progr = 0; /* Prevent a train lost message for full loading trains */
SET_EXPENSES_TYPE(EXPENSES_TRAIN_INC);
if (LoadUnloadVehicle(v)) {
InvalidateWindow(WC_TRAINS_LIST, v->owner);