Explorar el Código

Zone dwellings will now match first town.

DjWarmonger hace 11 años
padre
commit
4cea0a2973
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  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++;