Author: cazfi Date: Fri Mar 14 18:36:37 2014 New Revision: 24669 URL: http://svn.gna.org/viewcvs/freeciv?rev=24669&view=rev Log: Removed assert working against unit classes other than land moving ones from having "ZOC" flag.
See bug #21777 Modified: trunk/server/advisors/advgoto.c Modified: trunk/server/advisors/advgoto.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/advisors/advgoto.c?rev=24669&r1=24668&r2=24669&view=diff ============================================================================== --- trunk/server/advisors/advgoto.c (original) +++ trunk/server/advisors/advgoto.c Fri Mar 14 18:36:37 2014 @@ -164,13 +164,13 @@ **************************************************************************/ static bool adv_could_be_my_zoc(struct unit *myunit, struct tile *ptile) { - fc_assert_ret_val(is_ground_unit(myunit), TRUE); - - if (same_pos(ptile, unit_tile(myunit))) + if (same_pos(ptile, unit_tile(myunit))) { return FALSE; /* can't be my zoc */ + } if (is_tiles_adjacent(ptile, unit_tile(myunit)) - && !is_non_allied_unit_tile(ptile, unit_owner(myunit))) + && !is_non_allied_unit_tile(ptile, unit_owner(myunit))) { return FALSE; + } adjc_iterate(ptile, atile) { if (!is_ocean_tile(atile) _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits