ソースを参照

Fix a few warnings

AlexVinS 10 年 前
コミット
f24f744f4b
1 ファイル変更2 行追加2 行削除
  1. 2 2
      lib/rmg/CRmgTemplateZone.cpp

+ 2 - 2
lib/rmg/CRmgTemplateZone.cpp

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