mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-19 21:10:12 +02:00
Remove unused code
This commit is contained in:
parent
ea368c5176
commit
78fc6d0e41
@ -857,15 +857,6 @@ BattleScore BattleExchangeEvaluator::calculateExchange(
|
|||||||
exchangeBattle->nextRound();
|
exchangeBattle->nextRound();
|
||||||
}
|
}
|
||||||
|
|
||||||
// avoid blocking path for stronger stack by weaker stack
|
|
||||||
// the method checks if all stacks can be placed around enemy
|
|
||||||
std::map<BattleHex, battle::Units> reachabilityMap;
|
|
||||||
|
|
||||||
auto hexes = ap.attack.defender->getSurroundingHexes();
|
|
||||||
|
|
||||||
for(auto hex : hexes)
|
|
||||||
reachabilityMap[hex] = getOneTurnReachableUnits(turn, hex);
|
|
||||||
|
|
||||||
auto score = v.getScore();
|
auto score = v.getScore();
|
||||||
|
|
||||||
if(simulationTurnsCount < totalTurnsCount)
|
if(simulationTurnsCount < totalTurnsCount)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user