INT calculatePathDistance(CyPlot pSource, CyPlot pDest)
I've been using this function for my Auto Missionaries mod and I'm realizing the results of this function are not always accurate.
I had a Pangea map where my capitol was in the middle and several cities were in varying distances around the capitol
They are all connected by land.
I counted the tile distances from my capitol to each city, and then I used this function to see what it produced for each city.
Most of the time it was right on, but for some unknown reason it wasn't right for 2 out of 6 of my cities.
One city was 5 tiles away, but the function returned 8.
In another case a city was 4 tiles away but the function returned 5.
Try it out yourself to see if you get similar results...
I've been using this function for my Auto Missionaries mod and I'm realizing the results of this function are not always accurate.
I had a Pangea map where my capitol was in the middle and several cities were in varying distances around the capitol
They are all connected by land.
I counted the tile distances from my capitol to each city, and then I used this function to see what it produced for each city.
Most of the time it was right on, but for some unknown reason it wasn't right for 2 out of 6 of my cities.
One city was 5 tiles away, but the function returned 8.
In another case a city was 4 tiles away but the function returned 5.
Try it out yourself to see if you get similar results...
Comment