<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39543 >

2007/8/12 Marko Lindqvist <[EMAIL PROTECTED]>:
> On 12/08/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>
>> My suggestion for the AI code...  If a Nation already has a Small
>> Wonder, don't rebuild it anywhere else, that's the easy fix, and it'll
>> prolly be right 99% of the time.
>
>  Attached patch should do just that. Untested.

 Updated against current svn.


 - ML

diff -Nurd -X.diff_ignore freeciv/ai/aicity.c freeciv/ai/aicity.c
--- freeciv/ai/aicity.c	2008-03-28 09:26:55.000000000 +0200
+++ freeciv/ai/aicity.c	2008-06-21 16:47:01.000000000 +0300
@@ -230,7 +230,9 @@
     return 0; /* Nothing to calculate here. */
   }
 
-  if (!can_city_build_improvement_now(pcity, pimprove)) {
+  if (!can_city_build_improvement_now(pcity, pimprove)
+      || (is_small_wonder(pimprove)
+          && find_city_from_small_wonder(pplayer, pimprove))) {
     return 0;
   }
 
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to