mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Nullkiller - rewrite decomposition, decomposition cache, morale management
This commit is contained in:
committed by
Andrii Danylchenko
parent
35a1167f3d
commit
e385c83a88
@@ -185,6 +185,13 @@ Goals::TGoalVec CaptureObjectsBehavior::decompose() const
|
||||
{
|
||||
captureObjects(objectsToCapture);
|
||||
}
|
||||
else if(objectTypes.size())
|
||||
{
|
||||
captureObjects(
|
||||
std::vector<const CGObjectInstance *>(
|
||||
ai->nullkiller->memory->visitableObjs.begin(),
|
||||
ai->nullkiller->memory->visitableObjs.end()));
|
||||
}
|
||||
else
|
||||
{
|
||||
captureObjects(ai->nullkiller->objectClusterizer->getNearbyObjects());
|
||||
|
||||
Reference in New Issue
Block a user