action_prob_vs_X(): quick check target distance.
commit92e27d7d088733e75f53ad240e49506282ffe66c
authorsveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Sun, 19 Mar 2017 10:06:58 +0000 (19 10:06 +0000)
committersveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Sun, 19 Mar 2017 10:06:58 +0000 (19 10:06 +0000)
tree5ccdec906205406e25577790423096cc09756bcb
parenta1e67225258985ab747f6d5c65974ffd7f6ed6c8
action_prob_vs_X(): quick check target distance.

Make all the action_prob_vs_X() functions fail fast if the target is to far
away. This makes the behavior of action_prob_vs_units() (action probability
against unit stack) standard so the remaining action_prob_vs_X() functions
becomes ready for target specific unknowns.

See hrm Feature #644053

git-svn-id: svn://svn.gna.org/svn/freeciv/trunk@35126 a0f10bec-cc02-0410-94fc-a9cfff90b4cd
common/actions.c