mirror of https://github.com/OpenTTD/OpenTTD
(svn r12639) -Fix: order window was not marked dirty on changed orders.
parent
55f0d01235
commit
d178345947
|
@ -810,7 +810,6 @@ CommandCost CmdModifyOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
||||||
/* Update the windows and full load flags, also for vehicles that share the same order list */
|
/* Update the windows and full load flags, also for vehicles that share the same order list */
|
||||||
Vehicle *u = GetFirstVehicleFromSharedList(v);
|
Vehicle *u = GetFirstVehicleFromSharedList(v);
|
||||||
DeleteOrderWarnings(u);
|
DeleteOrderWarnings(u);
|
||||||
if (mof == MOF_LOAD || mof == MOF_UNLOAD) {
|
|
||||||
for (; u != NULL; u = u->next_shared) {
|
for (; u != NULL; u = u->next_shared) {
|
||||||
/* Toggle u->current_order "Full load" flag if it changed.
|
/* Toggle u->current_order "Full load" flag if it changed.
|
||||||
* However, as the same flag is used for depot orders, check
|
* However, as the same flag is used for depot orders, check
|
||||||
|
@ -829,7 +828,6 @@ CommandCost CmdModifyOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
||||||
InvalidateVehicleOrder(u);
|
InvalidateVehicleOrder(u);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return CommandCost();
|
return CommandCost();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue