1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

First batch of AI fixes:

- wiped not actually used set/get selection
- replaced isReachable with VCAI::isAccessible
This commit is contained in:
Ivan Savenko
2014-09-21 17:03:20 +03:00
parent 380c100783
commit b67618ab53
5 changed files with 2 additions and 24 deletions

View File

@@ -405,7 +405,6 @@ float FuzzyHelper::evaluate (Goals::VisitTile & g)
return 0;
//assert(cb->isInTheMap(g.tile));
ai->setSelection (g.hero.h);
float turns = 0;
float distance = cb->getMovementCost(g.hero.h, g.tile);
if (!distance) //we stand on that tile