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

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.

 This of course prevents moving palace in default ruleset. I don't
know how good decisions AI has been doing about moving palace. If it
has been random thing, this patch would actually be improvement for
default ruleset too...
 Per?


 - ML

diff -Nurd -X.diff_ignore freeciv/ai/aicity.c freeciv/ai/aicity.c
--- freeciv/ai/aicity.c	2007-08-11 00:20:33.000000000 +0300
+++ freeciv/ai/aicity.c	2007-08-12 16:44:12.000000000 +0300
@@ -219,7 +219,8 @@
     return 0; /* Nothing to calculate here. */
   }
 
-  if (!can_build_improvement(pcity, id)) {
+  if (!can_build_improvement(pcity, id)
+      || (is_small_wonder(id) && find_city_from_small_wonder(pplayer, id))) {
     return 0;
   }
 
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to