mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Fix a few warnings
This commit is contained in:
@ -1346,7 +1346,7 @@ void CRmgTemplateZone::initTownType (CMapGenerator* gen)
|
|||||||
//first town in zone goes in the middle
|
//first town in zone goes in the middle
|
||||||
placeAndGuardObject(gen, town, getPos() + town->getVisitableOffset(), 0);
|
placeAndGuardObject(gen, town, getPos() + town->getVisitableOffset(), 0);
|
||||||
cutPathAroundTown(town);
|
cutPathAroundTown(town);
|
||||||
setPos(town->visitablePos() + (0, 1, 0)); //new center of zone that paths connect to
|
setPos(town->visitablePos() + int3(0, 1, 0)); //new center of zone that paths connect to
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
addRequiredObject (town);
|
addRequiredObject (town);
|
||||||
@ -1392,7 +1392,7 @@ void CRmgTemplateZone::initTownType (CMapGenerator* gen)
|
|||||||
//towns are big objects and should be centered around visitable position
|
//towns are big objects and should be centered around visitable position
|
||||||
placeAndGuardObject(gen, town, getPos() + town->getVisitableOffset(), 0); //generate no guards, but free path to entrance
|
placeAndGuardObject(gen, town, getPos() + town->getVisitableOffset(), 0); //generate no guards, but free path to entrance
|
||||||
cutPathAroundTown(town);
|
cutPathAroundTown(town);
|
||||||
setPos(town->visitablePos() + (0, 1, 0)); //new center of zone that paths connect to
|
setPos(town->visitablePos() + int3(0, 1, 0)); //new center of zone that paths connect to
|
||||||
|
|
||||||
totalTowns++;
|
totalTowns++;
|
||||||
//register MAIN town of zone only
|
//register MAIN town of zone only
|
||||||
|
Reference in New Issue
Block a user