summaryrefslogtreecommitdiff
path: root/src/company_cmd.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2011-02-14 19:39:01 +0000
committerterkhen <terkhen@openttd.org>2011-02-14 19:39:01 +0000
commit8e4b2c951d92e525873c224de93d8c2cd50f8a6b (patch)
tree3996ae095dec018a1b56b5bc1f7065e9b49bda07 /src/company_cmd.cpp
parent95b6aeaabd933ebe4a292635d6392e602c3d51b3 (diff)
downloadopenttd-8e4b2c951d92e525873c224de93d8c2cd50f8a6b.tar.xz
(svn r22079) -Fix: The owner view of the smallmap was not updated after a company colour change.
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r--src/company_cmd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index a37ff677b..b2f42d538 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -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;