1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

AIGateway.cpp extracting methods that can be isolated/static

This commit is contained in:
Mircea TheHonestCTO
2025-08-14 03:09:42 +02:00
parent 372af15f4c
commit 76e91f7689
8 changed files with 221 additions and 192 deletions

View File

@@ -250,7 +250,7 @@ bool ObjectClusterizer::shouldVisitObject(const CGObjectInstance * obj) const
auto playerRelations = ai->cb->getPlayerRelations(ai->playerID, obj->tempOwner);
if(playerRelations != PlayerRelations::ENEMIES && !isWeeklyRevisitable(ai, obj))
if(playerRelations != PlayerRelations::ENEMIES && !isWeeklyRevisitable(ai->playerID, obj))
{
return false;
}