<URL: http://bugs.freeciv.org/Ticket/Display.html?id=23005 >

Graham Reeds wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=23005 >
> 
> Can anyone here tell me (or point me to the file that contains it) the 
> min-distance equations for toroidal maps?
> 
> I have a similar problem (though not grid based) and the cheapest way of 
> calculating it is to translate the start and end points relative to 0,0 
> and calculate it from there.  While that method is fairly simple I feel 
> there should be a more concise way to do it.

Check out map_distance and real_map_distance and sq_map_distance in map.c.

-jason



_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to