Merge branch 'cargo_type_order' into jgrpp
# Conflicts: # src/order_base.h # src/order_gui.cpp # src/order_type.h # src/saveload/extended_ver_sl.cpp # src/saveload/extended_ver_sl.h # src/vehicle_base.h
This commit is contained in:
@@ -1409,6 +1409,15 @@ CommandCost CmdMoveRailVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, u
|
||||
CheckCargoCapacity(dst_head);
|
||||
}
|
||||
|
||||
if (src_head != NULL) {
|
||||
src_head->last_loading_station = INVALID_STATION;
|
||||
ClrBit(src_head->vehicle_flags, VF_LAST_LOAD_ST_SEP);
|
||||
}
|
||||
if (dst_head != NULL) {
|
||||
dst_head->last_loading_station = INVALID_STATION;
|
||||
ClrBit(dst_head->vehicle_flags, VF_LAST_LOAD_ST_SEP);
|
||||
}
|
||||
|
||||
if (src_head != NULL) src_head->First()->MarkDirty();
|
||||
if (dst_head != NULL) dst_head->First()->MarkDirty();
|
||||
|
||||
|
Reference in New Issue
Block a user