(svn r26026) -Fix (r25648) [FS#5775-ish]: Invalidate vehicle colour palette again when rearranging consist, reversing, ...

This commit is contained in:
frosch 2013-11-17 16:01:50 +00:00
parent 2708aff853
commit 8fbd2f5cb5

View File

@ -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);