Explorar o código

VCAI: silence callback on visibility check

ArseniyShestakov %!s(int64=10) %!d(string=hai) anos
pai
achega
cf4cb5c948
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      AI/VCAI/VCAI.cpp

+ 1 - 1
AI/VCAI/VCAI.cpp

@@ -1697,7 +1697,7 @@ void VCAI::validateVisitableObjs()
 	auto shouldBeErased = [&](const CGObjectInstance *obj) -> bool
 	{
 		if (obj)
-			return !cb->getObj(obj->id);
+			return !cb->getObj(obj->id, false); // no verbose output needed as we check object visibility
 		else
 			return true;