1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Fix zone attraction

(cherry picked from commit 164ecaea60)
This commit is contained in:
Tomasz Zieliński 2023-04-10 11:11:35 +02:00
parent 3f83eaafc4
commit 48c11f661b

View File

@ -287,7 +287,7 @@ void CZonePlacer::placeOnGrid(CRandomGenerator* rand)
else
{
//Has direct connection - place as close as possible
localDistance = -(gridSize - 1);
localDistance = -potentialPos.dist2d(int3(existingX, existingY, 0));
}
//Spread apart player starting zones