From 0e347757706015c77069fff828765463a1324352 Mon Sep 17 00:00:00 2001 From: DjWarmonger Date: Tue, 23 Dec 2014 10:42:01 +0100 Subject: [PATCH] Important fix. --- lib/rmg/CZonePlacer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rmg/CZonePlacer.cpp b/lib/rmg/CZonePlacer.cpp index 52a57b731..f189e21a8 100644 --- a/lib/rmg/CZonePlacer.cpp +++ b/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)