Codechange: Replace window related FOR_ALL with range-based for loops
(cherry picked from commit 14e92bd8e2
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
c7cac34025
commit
dfe616bef4
@@ -489,8 +489,7 @@ static inline uint32 GetSmallMapOwnerPixels(TileIndex tile, TileType t)
|
||||
|
||||
static void NotifyAllViewports(ViewportMapType map_type)
|
||||
{
|
||||
Window *w;
|
||||
FOR_ALL_WINDOWS_FROM_BACK(w) {
|
||||
for (Window *w : Window::IterateFromBack()) {
|
||||
if (w->viewport != nullptr)
|
||||
if (w->viewport->zoom >= ZOOM_LVL_DRAW_MAP && w->viewport->map_type == map_type) {
|
||||
ClearViewportLandPixelCache(w->viewport);
|
||||
|
Reference in New Issue
Block a user