Author: sveinung
Date: Thu May 12 13:35:03 2016
New Revision: 32677

URL: http://svn.gna.org/viewcvs/freeciv?rev=32677&view=rev
Log:
actions: ACTPROB_NA is impossible.

Interpret the special action probability value ACTPROB_NA as impossible. If
no action probability should exist the action shouldn't be possible.

See patch #7215

Modified:
    trunk/common/actions.c

Modified: trunk/common/actions.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/actions.c?rev=32677&r1=32676&r2=32677&view=diff
==============================================================================
--- trunk/common/actions.c      (original)
+++ trunk/common/actions.c      Thu May 12 13:35:03 2016
@@ -2682,7 +2682,7 @@
 **************************************************************************/
 bool action_prob_possible(action_probability probability)
 {
-  return ACTPROB_IMPOSSIBLE != probability;
+  return ACTPROB_IMPOSSIBLE != probability && ACTPROB_NA != probability;
 }
 
 /**************************************************************************


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

Reply via email to