Author: cazfi
Date: Wed Apr 29 20:08:34 2015
New Revision: 28953

URL: http://svn.gna.org/viewcvs/freeciv?rev=28953&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_5/ai/default/advdiplomacy.c

Modified: branches/S2_5/ai/default/advdiplomacy.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/ai/default/advdiplomacy.c?rev=28953&r1=28952&r2=28953&view=diff
==============================================================================
--- branches/S2_5/ai/default/advdiplomacy.c     (original)
+++ branches/S2_5/ai/default/advdiplomacy.c     Wed Apr 29 20:08:34 2015
@@ -905,7 +905,8 @@
                                  struct player *aplayer)
 {
   if (pplayer->ai_controlled && !ai_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