1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

- Fixed all bugs with battle interface. It's now more consistent.

- Minor cleaning.
This commit is contained in:
DjWarmonger
2012-05-07 16:04:43 +00:00
parent ee2768ab07
commit 9cbbfcf258
2 changed files with 21 additions and 15 deletions

View File

@@ -972,11 +972,6 @@ void VCAI::makeTurnInternal()
safeCopy.push_back(h);
}
//auto compareReinforcements = [h](const CGTownInstance *lhs, const CGTownInstance *rhs) -> bool
// {
// return howManyReinforcementsCanGet(h, lhs) < howManyReinforcementsCanGet(h, rhs);
// };
auto lockedHeroesSorter = [](std::pair<const CGHeroInstance *, CGoal> h1, std::pair<const CGHeroInstance *, CGoal> h2) -> bool
{
return compareMovement (h1.first, h2.first);