Author: sveinung Date: Mon Mar 2 16:01:19 2015 New Revision: 28358 URL: http://svn.gna.org/viewcvs/freeciv?rev=28358&view=rev Log: Remove redundant check in handle_unit_get_actions()
The if statement can't be reached unless at_least_one_action can be done. See patch #5873 Modified: branches/S2_6/server/unithand.c Modified: branches/S2_6/server/unithand.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/unithand.c?rev=28358&r1=28357&r2=28358&view=diff ============================================================================== --- branches/S2_6/server/unithand.c (original) +++ branches/S2_6/server/unithand.c Mon Mar 2 16:01:19 2015 @@ -627,8 +627,7 @@ break; } - if (at_least_one_action - && target_city_id != IDENTITY_NUMBER_ZERO + if (target_city_id != IDENTITY_NUMBER_ZERO && target_unit != IDENTITY_NUMBER_ZERO) { /* No need to find out more. */ break; _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits