Author: cazfi
Date: Thu Oct 22 22:53:46 2015
New Revision: 30171

URL: http://svn.gna.org/viewcvs/freeciv?rev=30171&view=rev
Log:
Gave specific unit_move_to_tile_test() return value for animals unable to move
out of native terrain.

See patch #6456

Modified:
    trunk/common/movement.c
    trunk/common/movement.h

Modified: trunk/common/movement.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/movement.c?rev=30171&r1=30170&r2=30171&view=diff
==============================================================================
--- trunk/common/movement.c     (original)
+++ trunk/common/movement.c     Thu Oct 22 22:53:46 2015
@@ -580,7 +580,7 @@
   /* 4) */
   if (puowner->ai_common.barbarian_type == ANIMAL_BARBARIAN
       && dst_tile->terrain->animal != punittype) {
-    return MR_NO_TRANSPORTER_CAPACITY;
+    return MR_ANIMAL_DISALLOWED;
   }
 
   /* 5) */

Modified: trunk/common/movement.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/movement.h?rev=30171&r1=30170&r2=30171&view=diff
==============================================================================
--- trunk/common/movement.h     (original)
+++ trunk/common/movement.h     Thu Oct 22 22:53:46 2015
@@ -44,6 +44,7 @@
   MR_TRIREME,
   MR_CANNOT_DISEMBARK,
   MR_NON_NATIVE_MOVE,  /* Usually RMM_RELAXED road diagonally without link */
+  MR_ANIMAL_DISALLOWED
 };
 
 int utype_move_rate(const struct unit_type *utype, const struct tile *ptile,


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

Reply via email to