1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-14 02:33:51 +02:00

No longer relevant TODO removed

This commit is contained in:
Dydzio 2023-01-15 20:16:14 +01:00 committed by Nordsoft91
parent 72eb794397
commit 0e72ee9217

View File

@ -1632,8 +1632,7 @@ bool CBattleInfoCallback::isEnemyUnitWithinSpecifiedRange(BattleHex attackerPosi
for(auto hex : defenderUnit->getHexes())
if(BattleHex::getDistance(attackerPosition, hex) <= range)
return true;
//TODO what about shooting distance calculation for two-hex shooters? Is it correct?
return false;
}