Author: cazfi
Date: Tue Aug 16 07:19:15 2016
New Revision: 33610

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

See patch #7598

Modified:
    branches/S2_5/server/advisors/advbuilding.c

Modified: branches/S2_5/server/advisors/advbuilding.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/server/advisors/advbuilding.c?rev=33610&r1=33609&r2=33610&view=diff
==============================================================================
--- branches/S2_5/server/advisors/advbuilding.c (original)
+++ branches/S2_5/server/advisors/advbuilding.c Tue Aug 16 07:19:15 2016
@@ -310,10 +310,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