diff options
author | frosch <frosch@openttd.org> | 2013-08-25 15:43:52 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-08-25 15:43:52 +0000 |
commit | 322b2da953f708a521828439bd611d62b75cb7c5 (patch) | |
tree | 5ec96472533e6d039f884b88a9ea69e5a914b156 | |
parent | 6bbca9307d5da114e6b1210f6fa0b4fd42cbaaec (diff) | |
download | openttd-322b2da953f708a521828439bd611d62b75cb7c5.tar.xz |
(svn r25744) -Fix (r25648): [NewGRF] Also invalidate vehicle colour palette when rearranging consists.
-rw-r--r-- | src/train_cmd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index b61a9116c..96af0ec0c 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -1300,6 +1300,9 @@ CommandCost CmdMoveRailVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, u 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. */ InvalidateWindowData(WC_VEHICLE_DEPOT, src->tile); InvalidateWindowClassesData(WC_TRAINS_LIST, 0); |