mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Tuned density.
This commit is contained in:
		| @@ -1188,7 +1188,7 @@ void CRmgTemplateZone::createTreasures(CMapGenerator* gen) | ||||
| 		//also, normalize it to zone count - higher count means relatively smaller zones | ||||
|  | ||||
| 		//this is squared distance for optimization purposes | ||||
| 		const double minDistance = std::max<float>((600.f * size * size * gen->getZones().size()) / | ||||
| 		const double minDistance = std::max<float>((450.f * size * size * gen->getZones().size()) / | ||||
| 			(gen->mapGenOptions->getWidth() * gen->mapGenOptions->getHeight() * totalDensity * (gen->map->twoLevel ? 2 : 1)), 2); | ||||
| 		//distance lower than 2 causes objects to overlap and crash | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user