mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r1367) -Fix: Full-Loading trains no longer get "lost" after a while (Hackykid)
This commit is contained in:
parent
cdfb3d5113
commit
a9b3d8c998
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user