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

Fix zone attraction

This commit is contained in:
Tomasz Zieliński 2023-04-10 11:11:35 +02:00
parent 319f289dc4
commit 164ecaea60

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