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:
parent
fad91acd3a
commit
f41873fe72
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user