Fix map-mode viewports not updating when changing company and land colours
This commit is contained in:
@@ -1052,6 +1052,9 @@ CommandCost CmdSetCompanyColour(TileIndex tile, DoCommandFlag flags, uint32 p1,
|
||||
BuildOwnerLegend();
|
||||
InvalidateWindowData(WC_SMALLMAP, 0, 1);
|
||||
|
||||
extern void MarkAllViewportMapLandscapesDirty();
|
||||
MarkAllViewportMapLandscapesDirty();
|
||||
|
||||
/* Company colour data is indirectly cached. */
|
||||
for (Vehicle *v : Vehicle::Iterate()) {
|
||||
if (v->owner == _current_company) {
|
||||
|
@@ -909,6 +909,9 @@ static bool RedrawSmallmap(int32 p1)
|
||||
BuildLandLegend();
|
||||
BuildOwnerLegend();
|
||||
SetWindowClassesDirty(WC_SMALLMAP);
|
||||
|
||||
extern void MarkAllViewportMapLandscapesDirty();
|
||||
MarkAllViewportMapLandscapesDirty();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user