Browse Source

Zone dwellings will now match first town.

DjWarmonger 11 years ago
parent
commit
4cea0a2973
1 changed files with 6 additions and 1 deletions
  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::FORT);
 			town->builtBuildings.insert(BuildingID::DEFAULT);
 			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());
 				placeObject(gen, town, getPos() + town->getVisitableOffset());
+			}
 			else
 			else
 				addRequiredObject (town);
 				addRequiredObject (town);
 			totalTowns++;
 			totalTowns++;