浏览代码

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