1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-12 10:03:53 +02:00

Fix View Earth also revealing other objects such as heroes and towns

This commit is contained in:
Ivan Savenko 2024-11-27 21:26:54 +00:00
parent fad91acd3a
commit f41873fe72

View File

@ -548,7 +548,10 @@ size_t MapRendererSpellViewContext::overlayImageIndex(const int3 & coordinates)
return iconIndex;
}
return MapRendererWorldViewContext::overlayImageIndex(coordinates);
if (MapRendererBaseContext::isVisible(coordinates))
return MapRendererWorldViewContext::overlayImageIndex(coordinates);
else
return std::numeric_limits<size_t>::max();
}
MapRendererPuzzleMapContext::MapRendererPuzzleMapContext(const MapRendererContextState & viewState)