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

Patch without the noise.

  - Per
Index: ai/advdiplomacy.c
===================================================================
--- ai/advdiplomacy.c   (revision 13566)
+++ ai/advdiplomacy.c   (working copy)
@@ -804,10 +786,14 @@
                                 struct player *aplayer)
 {
   if (pplayer->ai.control && !ai_handicap(pplayer, H_AWAY)) {
+    struct ai_data *ai = ai_data_get(pplayer);
+    struct ai_dip_intel *adip = 
&ai->diplomacy.player_intel[player_index(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);
+    adip->asked_about_ceasefire = 6; /* anti-spam measure */
   }
 }
 
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to