1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Important fix.

This commit is contained in:
DjWarmonger 2014-12-23 10:42:01 +01:00
parent 875bfb025e
commit 0e34775770

View File

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