You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In CalcClosestTownFromTile if the distance of the tile and closest town is equal with the threshold, the function returns with NULL.
In ClosestTownFromTile, roads with the distance of threshold from the town are still return with the town, and not NULL.
So if a tile is threshold away from a town, ClosestTownFromTile will return with the town if there is a road, but NULL otherwise (if it calls CalcClosestTownFromTile). With the distance of threshold + 1, both cases return with NULL.
The text was updated successfully, but these errors were encountered:
LordAro
changed the title
Incosistency in closest town calculation with threshold
Inconsistency in closest town calculation with threshold
Feb 4, 2019
In CalcClosestTownFromTile if the distance of the tile and closest town is equal with the threshold, the function returns with NULL.
In ClosestTownFromTile, roads with the distance of threshold from the town are still return with the town, and not NULL.
So if a tile is threshold away from a town, ClosestTownFromTile will return with the town if there is a road, but NULL otherwise (if it calls CalcClosestTownFromTile). With the distance of threshold + 1, both cases return with NULL.
The text was updated successfully, but these errors were encountered: