Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2005:
[Freeciv-Dev] Re: (PR#14961) away AI diplomacy
Home

[Freeciv-Dev] Re: (PR#14961) away AI diplomacy

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#14961) away AI diplomacy
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Tue, 27 Dec 2005 05:32:14 -0800
Reply-to: bugs@xxxxxxxxxxx

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

On Fri, 23 Dec 2005, Jason Short wrote:
> In away mode, the AI keeps proposing treaties with me which it then
> doesn't agree to.

Only for ceasefire, I suppose? Patch attached.

 - Per

Index: ai/advdiplomacy.c
===================================================================
--- ai/advdiplomacy.c   (revision 11401)
+++ ai/advdiplomacy.c   (working copy)
@@ -797,10 +797,12 @@
 void ai_diplomacy_first_contact(struct player *pplayer,
                                 struct player *aplayer)
 {
-  notify(aplayer, _("*%s (AI)* Greetings %s! May we suggest a ceasefire "
-         "while we get to know each other better?"),
-         pplayer->name, aplayer->name);
-  ai_diplomacy_suggest(pplayer, aplayer, CLAUSE_CEASEFIRE, 0);
+  if (pplayer->ai.control && !ai_handicap(pplayer, H_AWAY)) {
+    notify(aplayer, _("*%s (AI)* Greetings %s! May we suggest a ceasefire "
+           "while we get to know each other better?"),
+           pplayer->name, aplayer->name);
+    ai_diplomacy_suggest(pplayer, aplayer, CLAUSE_CEASEFIRE, 0);
+  }
 }
 
 /********************************************************************** 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#14961) away AI diplomacy, Per I. Mathisen <=