mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
parent
64adc9983d
commit
3f83eaafc4
@ -306,15 +306,14 @@ void CZonePlacer::placeOnGrid(CRandomGenerator* rand)
|
||||
}
|
||||
|
||||
distance += localDistance;
|
||||
|
||||
if (distance > maxDistance)
|
||||
{
|
||||
distance = maxDistance;
|
||||
mostDistantPlace = potentialPos;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (distance > maxDistance)
|
||||
{
|
||||
maxDistance = distance;
|
||||
mostDistantPlace = potentialPos;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user