mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Bring back cbc in CAdventureAI and rename the rest to cc
This commit is contained in:
@@ -146,8 +146,8 @@ bool isEquivalentGoals(TSubgoal goal1, TSubgoal goal2)
|
||||
|
||||
if(goal1->goalType == Goals::CAPTURE_OBJECT && goal2->goalType == Goals::CAPTURE_OBJECT)
|
||||
{
|
||||
auto o1 = cbcTl->getObj(ObjectInstanceID(goal1->objid));
|
||||
auto o2 = cbcTl->getObj(ObjectInstanceID(goal2->objid));
|
||||
auto o1 = ccTl->getObj(ObjectInstanceID(goal1->objid));
|
||||
auto o2 = ccTl->getObj(ObjectInstanceID(goal2->objid));
|
||||
|
||||
return o1->ID == Obj::SHIPYARD && o1->ID == o2->ID;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user