summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-11-17 16:01:50 +0000
committerfrosch <frosch@openttd.org>2013-11-17 16:01:50 +0000
commit8fbd2f5cb5e11b0c4b723a9e1115fee2cf3a4c69 (patch)
treef2ae6346d22a0f1b0717154502700afabf7faae3 /src
parent2708aff85370fab3cb64a9f2eea17bac3e9e65a5 (diff)
downloadopenttd-8fbd2f5cb5e11b0c4b723a9e1115fee2cf3a4c69.tar.xz
(svn r26026) -Fix (r25648) [FS#5775-ish]: Invalidate vehicle colour palette again when rearranging consist, reversing, ...
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index a35b39c81..401877978 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -166,6 +166,9 @@ void Train::ConsistChanged(bool same_length)
/* Cache wagon override sprite group. NULL is returned if there is none */
u->tcache.cached_override = GetWagonOverrideSpriteSet(u->engine_type, u->cargo_type, u->gcache.first_engine);
+ /* Reset colour map */
+ u->colourmap = PAL_NONE;
+
/* Update powered-wagon-status and visual effect */
u->UpdateVisualEffect(true);