(svn r22079) -Fix: The owner view of the smallmap was not updated after a company colour change.

This commit is contained in:
terkhen 2011-02-14 19:39:01 +00:00
parent 95b6aeaabd
commit 8e4b2c951d
1 changed files with 3 additions and 0 deletions

View File

@ -1031,6 +1031,9 @@ CommandCost CmdSetCompanyColour(TileIndex tile, DoCommandFlag flags, uint32 p1,
InvalidateWindowData(WC_DELIVERED_CARGO, 0);
InvalidateWindowData(WC_PERFORMANCE_HISTORY, 0);
InvalidateWindowData(WC_COMPANY_VALUE, 0);
/* The smallmap owner view also stores the company colours. */
BuildOwnerLegend();
InvalidateWindowData(WC_SMALLMAP, 0, 1);
/* Company colour data is indirectly cached. */
Vehicle *v;