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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user