Author: cazfi
Date: Wed Aug  5 16:58:06 2015
New Revision: 29339

URL: http://svn.gna.org/viewcvs/freeciv?rev=29339&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_6/ai/default/advdomestic.c

Modified: branches/S2_6/ai/default/advdomestic.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/ai/default/advdomestic.c?rev=29339&r1=29338&r2=29339&view=diff
==============================================================================
--- branches/S2_6/ai/default/advdomestic.c      (original)
+++ branches/S2_6/ai/default/advdomestic.c      Wed Aug  5 16:58:06 2015
@@ -485,7 +485,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