From 8fbd2f5cb5e11b0c4b723a9e1115fee2cf3a4c69 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 17 Nov 2013 16:01:50 +0000 Subject: (svn r26026) -Fix (r25648) [FS#5775-ish]: Invalidate vehicle colour palette again when rearranging consist, reversing, ... --- src/train_cmd.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3-70-g09d2