mirror of https://github.com/OpenTTD/OpenTTD
(svn r25744) -Fix (r25648): [NewGRF] Also invalidate vehicle colour palette when rearranging consists.
parent
6bbca9307d
commit
322b2da953
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue