Author: cazfi
Date: Wed Aug  5 16:57:56 2015
New Revision: 29338

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

Modified: trunk/ai/default/advdomestic.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/advdomestic.c?rev=29338&r1=29337&r2=29338&view=diff
==============================================================================
--- trunk/ai/default/advdomestic.c      (original)
+++ trunk/ai/default/advdomestic.c      Wed Aug  5 16:57:56 2015
@@ -497,7 +497,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