mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Important fix.
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user