Author: cazfi Date: Thu Oct 22 22:53:52 2015 New Revision: 30172 URL: http://svn.gna.org/viewcvs/freeciv?rev=30172&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: branches/S2_6/common/movement.c branches/S2_6/common/movement.h Modified: branches/S2_6/common/movement.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/movement.c?rev=30172&r1=30171&r2=30172&view=diff ============================================================================== --- branches/S2_6/common/movement.c (original) +++ branches/S2_6/common/movement.c Thu Oct 22 22:53:52 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: branches/S2_6/common/movement.h URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/movement.h?rev=30172&r1=30171&r2=30172&view=diff ============================================================================== --- branches/S2_6/common/movement.h (original) +++ branches/S2_6/common/movement.h Thu Oct 22 22:53:52 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