Author: cazfi Date: Sat Aug 22 10:01:33 2015 New Revision: 29633 URL: http://svn.gna.org/viewcvs/freeciv?rev=29633&view=rev Log: Reworked sanity check about units that can't exist on tile without transport to give more informative failure.
See bug #23801 Modified: trunk/server/sanitycheck.c Modified: trunk/server/sanitycheck.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/sanitycheck.c?rev=29633&r1=29632&r2=29633&view=diff ============================================================================== --- trunk/server/sanitycheck.c (original) +++ trunk/server/sanitycheck.c Sat Aug 22 10:01:33 2015 @@ -433,9 +433,7 @@ SANITY_CHECK(punit->hp > 0); /* Check for ground units in the ocean. */ - if (!can_unit_exist_at_tile(punit, ptile)) { - SANITY_CHECK(ptrans != NULL); - } + SANITY_CHECK(can_unit_exist_at_tile(punit, ptile) || ptrans != NULL); /* Check for over-full transports. */ SANITY_CHECK(get_transporter_occupancy(punit) _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits