mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Use same fow radius calculation as in H3
This commit is contained in:
@@ -97,7 +97,7 @@ void CPrivilegedInfoCallback::getTilesInRange(std::unordered_set<int3> & tiles,
|
||||
for (int yd = std::max<int>(pos.y - radious, 0); yd <= std::min<int>(pos.y + radious, gs->map->height - 1); yd++)
|
||||
{
|
||||
int3 tilePos(xd,yd,pos.z);
|
||||
double distance = pos.dist(tilePos, distanceFormula);
|
||||
int distance = pos.dist(tilePos, distanceFormula);
|
||||
|
||||
if(distance <= radious)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user