1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Make sure main town is accessible.

This commit is contained in:
DjWarmonger 2014-07-08 12:28:50 +02:00
parent d3f97829a1
commit b9a01fbffe

View File

@ -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