mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Tweaked treasure density.
This commit is contained in:
@@ -1082,7 +1082,7 @@ bool CRmgTemplateZone::createRequiredObjects(CMapGenerator* gen)
|
||||
|
||||
void CRmgTemplateZone::createTreasures(CMapGenerator* gen)
|
||||
{
|
||||
const double minDistance = std::max<float>(15.0f / sqrt(totalDensity), 2);
|
||||
const double minDistance = std::max<float>(20.f / sqrt(totalDensity), 2);
|
||||
//distance lower than 2 causes objects to overlap and crash
|
||||
|
||||
do {
|
||||
|
Reference in New Issue
Block a user