Author: cazfi Date: Wed Apr 29 20:08:44 2015 New Revision: 28954 URL: http://svn.gna.org/viewcvs/freeciv?rev=28954&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_4/ai/default/advdiplomacy.c Modified: branches/S2_4/ai/default/advdiplomacy.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_4/ai/default/advdiplomacy.c?rev=28954&r1=28953&r2=28954&view=diff ============================================================================== --- branches/S2_4/ai/default/advdiplomacy.c (original) +++ branches/S2_4/ai/default/advdiplomacy.c Wed Apr 29 20:08:44 2015 @@ -901,7 +901,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