Author: cazfi
Date: Wed Aug  5 16:58:14 2015
New Revision: 29340

URL: http://svn.gna.org/viewcvs/freeciv?rev=29340&view=rev
Log:
Fixed integer math problem causing settler want to be multiply of normal want 
depending on expansionist
trait value, zero if trait value is less than the default.

See bug #23745

Modified:
    branches/S2_5/ai/default/advdomestic.c

Modified: branches/S2_5/ai/default/advdomestic.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/ai/default/advdomestic.c?rev=29340&r1=29339&r2=29340&view=diff
==============================================================================
--- branches/S2_5/ai/default/advdomestic.c      (original)
+++ branches/S2_5/ai/default/advdomestic.c      Wed Aug  5 16:58:14 2015
@@ -433,7 +433,7 @@
   }
 
   /* Adjust founder want by traits */
-  founder_want *= ai_trait_get_value(TRAIT_EXPANSIONIST, pplayer)
+  founder_want *= (double)ai_trait_get_value(TRAIT_EXPANSIONIST, pplayer)
     / TRAIT_DEFAULT_VALUE;
 
   if (founder_type


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

Reply via email to