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

Tuned density.

This commit is contained in:
DjWarmonger 2014-12-20 14:52:01 +01:00
parent 3886a19771
commit 50dc22fa1b

View File

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