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

- Fixed heroes stalling. Locked heroes now try to decompose their goals exhaustively, which FINALLY works as intended.

- Fixed multiple issues with ClearWayTo goal.
This commit is contained in:
DjWarmonger
2013-12-26 09:53:37 +00:00
parent 603cbd8850
commit e5b011abe0
6 changed files with 144 additions and 62 deletions

View File

@@ -459,6 +459,6 @@ float FuzzyHelper::evaluate (Goals::Invalid & g)
}
float FuzzyHelper::evaluate (Goals::AbstractGoal & g)
{
logAi->debugStream() << boost::format("Cannot evaluate goal %s") % g.name();
return -1e10;
logAi->warnStream() << boost::format("Cannot evaluate goal %s") % g.name();
return g.priority;
}