Fix changing smallmap legend not updating viewport maps

This commit is contained in:
Jonathan G Rennison
2020-10-13 21:33:59 +01:00
parent bb862100af
commit d7387f3995
2 changed files with 4 additions and 1 deletions

View File

@@ -487,8 +487,10 @@ static void NotifyAllViewports(ViewportMapType map_type)
Window *w;
FOR_ALL_WINDOWS_FROM_BACK(w) {
if (w->viewport != nullptr)
if (w->viewport->zoom >= ZOOM_LVL_DRAW_MAP && w->viewport->map_type == map_type)
if (w->viewport->zoom >= ZOOM_LVL_DRAW_MAP && w->viewport->map_type == map_type) {
ClearViewportLandPixelCache(w->viewport);
w->InvalidateData();
}
}
}