Author: sveinung Date: Wed Dec 3 22:01:00 2014 New Revision: 27173 URL: http://svn.gna.org/viewcvs/freeciv?rev=27173&view=rev Log: AI: It is possible to do a spy action from the same tile as the target.
See patch #5481 Modified: trunk/ai/default/aidiplomat.c Modified: trunk/ai/default/aidiplomat.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/aidiplomat.c?rev=27173&r1=27172&r2=27173&view=diff ============================================================================== --- trunk/ai/default/aidiplomat.c (original) +++ trunk/ai/default/aidiplomat.c Wed Dec 3 22:01:00 2014 @@ -837,7 +837,7 @@ int dist = real_map_distance(unit_tile(punit), punit->goto_tile); UNIT_LOG(LOG_DIPLOMAT, punit, "attack, dist %d to %s", dist, ctarget ? city_name(ctarget) : "(none)"); - if (dist == 1) { + if (dist <= 1) { /* Do our stuff */ dai_unit_new_task(ait, punit, AIUNIT_NONE, NULL); dai_diplomat_city(ait, punit, ctarget); _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits