Initial LinkRefresher support for cargo-specific links.
This commit is contained in:
@@ -1332,6 +1332,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