Add an action probability comparison function.
commit31b93c7246a3bcbe91aee737968489b8f775134c
authorsveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Wed, 2 Nov 2016 16:15:31 +0000 (2 16:15 +0000)
committersveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Wed, 2 Nov 2016 16:15:31 +0000 (2 16:15 +0000)
tree69cd62c40b089b7b532e5b96ff8934842e60962e
parentb80ac7c5ff8f551ff53a7680e05677aaefb57d95
Add an action probability comparison function.

Introduce action_prob_cmp_pessimist(). It compares two act_prob structs
first by minimum probability and then by maximum probability.

See patch #7906

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