Author: cazfi Date: Wed Apr 29 20:08:18 2015 New Revision: 28951 URL: http://svn.gna.org/viewcvs/freeciv?rev=28951&view=rev Log: AI does not chat about signing cease-fire when players are unable to meet to do so.
See bug #23542 Modified: trunk/ai/default/advdiplomacy.c Modified: trunk/ai/default/advdiplomacy.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/advdiplomacy.c?rev=28951&r1=28950&r2=28951&view=diff ============================================================================== --- trunk/ai/default/advdiplomacy.c (original) +++ trunk/ai/default/advdiplomacy.c Wed Apr 29 20:08:18 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