(svn r25744) -Fix (r25648): [NewGRF] Also invalidate vehicle colour palette when rearranging consists.
This commit is contained in:
@@ -1300,6 +1300,9 @@ CommandCost CmdMoveRailVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, u
|
|||||||
CheckCargoCapacity(dst_head);
|
CheckCargoCapacity(dst_head);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (src_head != NULL) src_head->First()->MarkDirty();
|
||||||
|
if (dst_head != NULL) dst_head->First()->MarkDirty();
|
||||||
|
|
||||||
/* We are undoubtedly changing something in the depot and train list. */
|
/* We are undoubtedly changing something in the depot and train list. */
|
||||||
InvalidateWindowData(WC_VEHICLE_DEPOT, src->tile);
|
InvalidateWindowData(WC_VEHICLE_DEPOT, src->tile);
|
||||||
InvalidateWindowClassesData(WC_TRAINS_LIST, 0);
|
InvalidateWindowClassesData(WC_TRAINS_LIST, 0);
|
||||||
|
Reference in New Issue
Block a user