소스 검색

Make sure main town is accessible.

DjWarmonger 11 년 전
부모
커밋
b9a01fbffe
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      lib/rmg/CRmgTemplateZone.cpp

+ 1 - 0
lib/rmg/CRmgTemplateZone.cpp

@@ -851,6 +851,7 @@ void CRmgTemplateZone::initTownType (CMapGenerator* gen)
 			town->builtBuildings.insert(BuildingID::FORT);
 			town->builtBuildings.insert(BuildingID::DEFAULT);
 			placeObject(gen, town, getPos() + town->getVisitableOffset()); //towns are big objects and should be centered around visitable position
+			guardObject(gen, town, 0); //generate no guards, but free path to entrance
 
 			totalTowns++;
 			//register MAIN town of zone only