소스 검색

Removed AI bottleneck on water-based maps.

DjWarmonger 11 년 전
부모
커밋
2da3d7d7c3
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      AI/VCAI/VCAI.cpp

+ 1 - 3
AI/VCAI/VCAI.cpp

@@ -2995,9 +2995,7 @@ For ship construction etc, another function (goal?) is needed
 							shipyards.push_back(t);
 					}
 
-					std::vector<const CGObjectInstance*> visObjs;
-					ai->retreiveVisitableObjs(visObjs, true);
-					for(const CGObjectInstance *obj : visObjs)
+					for(const CGObjectInstance *obj : ai->visitableObjs)
 					{
 						if(obj->ID != Obj::TOWN) //towns were handled in the previous loop
 							if(const IShipyard *shipyard = IShipyard::castFrom(obj))