mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-21 12:06:49 +02:00
Make sure main town is accessible.
This commit is contained in:
parent
d3f97829a1
commit
b9a01fbffe
@ -851,6 +851,7 @@ 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);
|
||||||
placeObject(gen, town, getPos() + town->getVisitableOffset()); //towns are big objects and should be centered around visitable position
|
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++;
|
totalTowns++;
|
||||||
//register MAIN town of zone only
|
//register MAIN town of zone only
|
||||||
|
Loading…
x
Reference in New Issue
Block a user