handle_unit_get_actions(): actor target distance.
commit2771a5c00fa12d67b3b36410814d1af1660b78a2
authorsveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Mon, 14 Nov 2016 06:55:59 +0000 (14 06:55 +0000)
committersveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Mon, 14 Nov 2016 06:55:59 +0000 (14 06:55 +0000)
treec08e92d83e51758ecf16909369c49042cee41002
parent005e0a3c721eac6b76c588c0cf5aac6090032eeb
handle_unit_get_actions(): actor target distance.

Replace the cached calculation if the actor and the target are at the same
tile with caching the distance between actor and target. The distance is
more reusable.

See patch #7975

git-svn-id: svn://svn.gna.org/svn/freeciv/trunk@34507 a0f10bec-cc02-0410-94fc-a9cfff90b4cd
server/unithand.c