Author: cazfi
Date: Thu Jan  8 22:20:32 2015
New Revision: 27576

URL: http://svn.gna.org/viewcvs/freeciv?rev=27576&view=rev
Log:
Do not consider negative value of boolean "Fanatics" effect 'true'.

See bug #23142

Modified:
    trunk/common/unittype.c

Modified: trunk/common/unittype.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/unittype.c?rev=27576&r1=27575&r2=27576&view=diff
==============================================================================
--- trunk/common/unittype.c     (original)
+++ trunk/common/unittype.c     Thu Jan  8 22:20:32 2015
@@ -132,8 +132,8 @@
 {
   int val = ut->upkeep[otype], gold_upkeep_factor;
 
-  if (get_player_bonus(pplayer, EFT_FANATICS)
-      && BV_ISSET(ut->flags, UTYF_FANATIC)) {
+  if (BV_ISSET(ut->flags, UTYF_FANATIC)
+      && get_player_bonus(pplayer, EFT_FANATICS) > 0) {
     /* Special case: fanatics have no upkeep under fanaticism. */
     return 0;
   }


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

Reply via email to