diff options
author | frosch <frosch@openttd.org> | 2013-11-17 16:01:50 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-11-17 16:01:50 +0000 |
commit | 8fbd2f5cb5e11b0c4b723a9e1115fee2cf3a4c69 (patch) | |
tree | f2ae6346d22a0f1b0717154502700afabf7faae3 /src | |
parent | 2708aff85370fab3cb64a9f2eea17bac3e9e65a5 (diff) | |
download | openttd-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.cpp | 3 |
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); |