mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
AI pathfinding: use own FuzzyHelper for each storage to allow parallel processing without cuncarrent access
This commit is contained in:
@@ -121,8 +121,7 @@ namespace AIPathfinding
|
||||
return;
|
||||
}
|
||||
|
||||
auto hero = nodeStorage->getHero();
|
||||
auto danger = evaluateDanger(destination.coord, hero, cb);
|
||||
auto danger = nodeStorage->evaluateDanger(destination.coord);
|
||||
|
||||
destination.node = battleNode;
|
||||
nodeStorage->commit(destination, source);
|
||||
|
||||
Reference in New Issue
Block a user