mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Improve wander logging
This commit is contained in:
@@ -1470,7 +1470,8 @@ void VCAI::wander(HeroPtr h)
|
|||||||
decomposeGoal(bestObjectGoal)->accept(this);
|
decomposeGoal(bestObjectGoal)->accept(this);
|
||||||
|
|
||||||
//wander should not cause heroes to be reserved - they are always considered free
|
//wander should not cause heroes to be reserved - they are always considered free
|
||||||
logAi->debug("Of all %d destinations, object oid=%d seems nice", dests.size(), bestObjectGoal->objid);
|
auto chosenObject = cb->getObjInstance(ObjectInstanceID(bestObjectGoal->objid));
|
||||||
|
logAi->debug("Of all %d destinations, object %s at pos=%s seems nice", dests.size(), chosenObject->getObjectName(), chosenObject->pos.toString());
|
||||||
|
|
||||||
visitTownIfAny(h);
|
visitTownIfAny(h);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user