Ver Fonte

Zone dwellings will now match first town.

DjWarmonger há 11 anos atrás
pai
commit
4cea0a2973
1 ficheiros alterados com 6 adições e 1 exclusões
  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++;