(svn r1367) -Fix: Full-Loading trains no longer get "lost" after a while (Hackykid)

This commit is contained in:
matthijs 2005-01-04 00:54:12 +00:00
parent cdfb3d5113
commit a9b3d8c998

View File

@ -1718,6 +1718,7 @@ static void HandleTrainLoading(Vehicle *v, bool mode)
return; return;
if (v->current_order.flags & OF_FULL_LOAD && CanFillVehicle(v)) { 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); SET_EXPENSES_TYPE(EXPENSES_TRAIN_INC);
if (LoadUnloadVehicle(v)) { if (LoadUnloadVehicle(v)) {
InvalidateWindow(WC_TRAINS_LIST, v->owner); InvalidateWindow(WC_TRAINS_LIST, v->owner);