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:
parent
15592c3aff
commit
d841655c1d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user