Author: sveinung
Date: Wed Dec  3 22:00:49 2014
New Revision: 27172

URL: http://svn.gna.org/viewcvs/freeciv?rev=27172&view=rev
Log:
AI: It is possible to do a caravan action from the neighbor tile.

See patch #5480

Modified:
    trunk/ai/default/aiunit.c

Modified: trunk/ai/default/aiunit.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/aiunit.c?rev=27172&r1=27171&r2=27172&view=diff
==============================================================================
--- trunk/ai/default/aiunit.c   (original)
+++ trunk/ai/default/aiunit.c   Wed Dec  3 22:00:49 2014
@@ -1914,7 +1914,7 @@
   }
 
   /* if moving didn't kill us, and we got to the destination, handle it. */
-  if (alive && same_pos(dest_city->tile, unit_tile(punit))) {
+  if (alive && real_map_distance(dest_city->tile, unit_tile(punit)) <= 1) {
     /* release the boat! */
     if (unit_transported(punit)) {
       aiferry_clear_boat(ait, punit);


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

Reply via email to