An unknown target can't make an action possible.
commitb6119c9b5680b8b538027baaaee7f0b853948ef5
authorsveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Sun, 13 Nov 2016 18:29:46 +0000 (13 18:29 +0000)
committersveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Sun, 13 Nov 2016 18:29:46 +0000 (13 18:29 +0000)
tree50c7f8e73f3e13c38ff75c576dd7656dece83863
parent0e0b47be13e1b6d73b607d51c789f68bc11b6d2f
An unknown target can't make an action possible.

An action can be known to be impossible because of the actor unit. When this
is true it doesn't matter what the target is.

Example: It doesn't matter if the unseen distant tile the unit wants to
bombard has units or not when it is out of moves and the rules requires a
bombarding unit to have a move fragment left.

Have the action probability calculation for unit stack targeted actions
return impossible rather than unknown when the actor unit is known to make
the action impossible.

See bug #25281

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