mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
AI: tweak explore to work with new pathfinding.
This commit is contained in:
@@ -78,6 +78,11 @@ ui64 FuzzyHelper::estimateBankDanger(const CBank * bank)
|
||||
|
||||
float FuzzyHelper::evaluate(Goals::VisitTile & g)
|
||||
{
|
||||
if(g.parent)
|
||||
{
|
||||
g.parent->accept(this);
|
||||
}
|
||||
|
||||
return visitTileEngine.evaluate(g);
|
||||
}
|
||||
|
||||
@@ -108,6 +113,11 @@ float FuzzyHelper::evaluate(Goals::CompleteQuest & g)
|
||||
|
||||
float FuzzyHelper::evaluate(Goals::VisitObj & g)
|
||||
{
|
||||
if(g.parent)
|
||||
{
|
||||
g.parent->accept(this);
|
||||
}
|
||||
|
||||
return visitObjEngine.evaluate(g);
|
||||
}
|
||||
float FuzzyHelper::evaluate(Goals::VisitHero & g)
|
||||
|
||||
Reference in New Issue
Block a user