瀏覽代碼

Important fix.

DjWarmonger 11 年之前
父節點
當前提交
0e34775770
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/rmg/CZonePlacer.cpp

+ 1 - 1
lib/rmg/CZonePlacer.cpp

@@ -205,7 +205,7 @@ void CZonePlacer::placeZones(const CMapGenOptions * mapGenOptions, CRandomGenera
 		for (auto zone : distances) //find most misplaced zone
 		{
 			totalDistance += zone.second;
-			int overlap = overlaps[zone.first];
+			float overlap = overlaps[zone.first];
 			totalOverlap += overlap;
 			float ratio = (zone.second + overlap) / forces[zone.first].mag(); //if distance to actual movement is long, the zone is misplaced
 			if (ratio > maxRatio)