mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
First semi-working version of antilag for hero movement
This commit is contained in:
@@ -676,7 +676,7 @@ void CGameState::initFogOfWar()
|
||||
if(!vstd::contains(elem.second.players, obj->getOwner()))
|
||||
continue; //not a flagged object
|
||||
|
||||
std::unordered_set<int3> tiles;
|
||||
FowTilesType tiles;
|
||||
getTilesInRange(tiles, obj->getSightCenter(), obj->getSightRadius(), ETileVisibility::HIDDEN, obj->tempOwner);
|
||||
for(const int3 & tile : tiles)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user