Author: cazfi
Date: Tue Aug 16 07:19:02 2016
New Revision: 33608

URL: http://svn.gna.org/viewcvs/freeciv?rev=33608&view=rev
Log:
Prevented building advisor from randomly building, and thus potentially just 
moving, any small wonders.

See patch #7598

Modified:
    trunk/server/advisors/advbuilding.c

Modified: trunk/server/advisors/advbuilding.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/advisors/advbuilding.c?rev=33608&r1=33607&r2=33608&view=diff
==============================================================================
--- trunk/server/advisors/advbuilding.c (original)
+++ trunk/server/advisors/advbuilding.c Tue Aug 16 07:19:02 2016
@@ -324,10 +324,10 @@
     return;
   }
 
-  /* Build the first thing we can think of (except a new palace). */
+  /* Build the first thing we can think of (except moving small wonder). */
   improvement_iterate(pimprove) {
     if (can_city_build_improvement_now(pcity, pimprove)
-        && !building_has_effect(pimprove, EFT_CAPITAL_CITY)) {
+        && pimprove->genus != IG_SMALL_WONDER) {
       struct universal target = {
         .kind = VUT_IMPROVEMENT,
         .value = {.building = pimprove}


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

Reply via email to