1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

Scale fuzzy edges with map size.

This commit is contained in:
Tomasz Zieliński 2023-04-18 22:34:26 +02:00
parent 15592c3aff
commit d841655c1d

View File

@ -698,7 +698,7 @@ float CZonePlacer::metric (const int3 &A, const int3 &B) const
return dx * dx + dy * dy +
5 * std::sin(dx * dy / 10) +
25 * std::sin (std::sqrt(A.x * B.x) * (A.y - B.y) / 50);
25 * std::sin (std::sqrt(A.x * B.x) * (A.y - B.y) / 100 * (scaleX * scaleY));
}
void CZonePlacer::assignZones(CRandomGenerator * rand)