Author: cazfi
Date: Wed Apr 29 20:08:26 2015
New Revision: 28952

URL: http://svn.gna.org/viewcvs/freeciv?rev=28952&view=rev
Log:
AI does not chat about signing cease-fire when players are unable to meet to do 
so.

See bug #23542

Modified:
    branches/S2_6/ai/default/advdiplomacy.c

Modified: branches/S2_6/ai/default/advdiplomacy.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/ai/default/advdiplomacy.c?rev=28952&r1=28951&r2=28952&view=diff
==============================================================================
--- branches/S2_6/ai/default/advdiplomacy.c     (original)
+++ branches/S2_6/ai/default/advdiplomacy.c     Wed Apr 29 20:08:26 2015
@@ -913,7 +913,8 @@
                                  struct player *aplayer)
 {
   if (pplayer->ai_controlled && !has_handicap(pplayer, H_AWAY)
-      && player_diplstate_get(pplayer, aplayer)->type == DS_WAR) {
+      && player_diplstate_get(pplayer, aplayer)->type == DS_WAR
+      && could_meet_with_player(pplayer, aplayer)) {
     notify(aplayer, _("*%s (AI)* Greetings %s! May we suggest a ceasefire "
            "while we get to know each other better?"),
            player_name(pplayer),


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to