Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2004:
[Freeciv-Dev] (PR#9307) AI giving embassy
Home

[Freeciv-Dev] (PR#9307) AI giving embassy

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9307) AI giving embassy
From: "Com013" <kg.guests@xxxxxx>
Date: Wed, 7 Jul 2004 13:04:42 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9307 >

There is currently a bug in the AI logic for giving an embassy to a player.
The AI is *always* giving an embassy to you and it is only accepting one 
from you if you are at peace - obviously this is wrong.

It needed only a tiny fix.

- D. Kolf

diff -ruN -X freeciv/diff_ignore freeciv/ai/advdiplomacy.c 
freeciv-aidip/ai/advdiplomacy.c
--- freeciv/ai/advdiplomacy.c   2004-07-06 18:27:51.000000000 +0200
+++ freeciv-aidip/ai/advdiplomacy.c     2004-07-07 21:19:58.000000000 +0200
@@ -413,7 +413,7 @@
     }
     break;
   case CLAUSE_EMBASSY:
-    if (!give) {
+    if (give) {
       if (pplayers_in_peace(pplayer, aplayer)) {
         worth = 0;
       } else {

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9307) AI giving embassy, Com013 <=