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:
parent
319f289dc4
commit
164ecaea60
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user