mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Fix a few warnings
This commit is contained in:
parent
bdee647525
commit
f24f744f4b
@ -1346,7 +1346,7 @@ void CRmgTemplateZone::initTownType (CMapGenerator* gen)
|
||||
//first town in zone goes in the middle
|
||||
placeAndGuardObject(gen, town, getPos() + town->getVisitableOffset(), 0);
|
||||
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
|
||||
addRequiredObject (town);
|
||||
@ -1392,7 +1392,7 @@ void CRmgTemplateZone::initTownType (CMapGenerator* gen)
|
||||
//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
|
||||
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++;
|
||||
//register MAIN town of zone only
|
||||
|
Loading…
Reference in New Issue
Block a user