mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
Tuned density.
This commit is contained in:
parent
3886a19771
commit
50dc22fa1b
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user