瀏覽代碼

Zone dwellings will now match first town.

DjWarmonger 11 年之前
父節點
當前提交
4cea0a2973
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      lib/rmg/CRmgTemplateZone.cpp

+ 6 - 1
lib/rmg/CRmgTemplateZone.cpp

@@ -782,8 +782,13 @@ void CRmgTemplateZone::initTownType (CMapGenerator* gen)
 				town->builtBuildings.insert(BuildingID::FORT);
 			town->builtBuildings.insert(BuildingID::DEFAULT);
 
-			if (!totalTowns) //first town in zone goes in the middle
+			if (!totalTowns) 
+			{
+				//first town in zone sets the facton of entire zone
+				town->subID = townType;
+				//first town in zone goes in the middle
 				placeObject(gen, town, getPos() + town->getVisitableOffset());
+			}
 			else
 				addRequiredObject (town);
 			totalTowns++;