mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-05 00:49:09 +02:00
Merge remote-tracking branch 'vcmi/master' into develop
This commit is contained in:
@ -88,8 +88,8 @@ bool RoadPlacer::createRoad(const int3 & destination)
|
||||
{
|
||||
ret *= VISITABLE_PENALTY;
|
||||
}
|
||||
float dist = border.distance(dst);
|
||||
if(dist > 1)
|
||||
float dist = border.distanceSqr(dst);
|
||||
if(dist > 1.0f)
|
||||
{
|
||||
ret /= dist;
|
||||
}
|
||||
|
Reference in New Issue
Block a user