1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

consistent renaming of ai into aiGw or aiNk and cbc

This commit is contained in:
Mircea TheHonestCTO
2025-08-16 00:22:18 +02:00
parent 6b6298fa33
commit b8bf8714a1
25 changed files with 85 additions and 85 deletions

View File

@@ -205,12 +205,12 @@ void ObjectGraphCalculator::calculateConnections(const int3 & pos, std::vector<A
auto obj1 = actorObjectMap[path1.targetHero];
auto obj2 = actorObjectMap[path2.targetHero];
auto tile1 = cbc->getTile(pos1);
auto tile2 = cbc->getTile(pos2);
auto tile1 = cbcTl->getTile(pos1);
auto tile2 = cbcTl->getTile(pos2);
if(tile2->isWater() && !tile1->isWater())
{
if(!cbc->getTile(pos)->isWater())
if(!cbcTl->getTile(pos)->isWater())
continue;
auto startingObjIsBoat = (obj1 && obj1->ID == Obj::BOAT) || target->isVirtualBoat(pos1);
@@ -295,7 +295,7 @@ void ObjectGraphCalculator::addObjectActor(const CGObjectInstance * obj)
objectActor->pos = objectActor->convertFromVisitablePos(visitablePos);
objectActor->initObj(randomizer);
if(cbc->getTile(visitablePos)->isWater())
if(cbcTl->getTile(visitablePos)->isWater())
{
objectActor->setBoat(temporaryBoats.emplace_back(std::make_unique<CGBoat>(objectActor->cb)).get());
}