Author: sveinung Date: Tue Jan 6 13:06:10 2015 New Revision: 27554 URL: http://svn.gna.org/viewcvs/freeciv?rev=27554&view=rev Log: Client: Check received unit actions using action_prob_possible()
so it will work even if the action probability encoding changes in the future. See patch #5665 Modified: branches/S2_6/client/packhand.c Modified: branches/S2_6/client/packhand.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/packhand.c?rev=27554&r1=27553&r2=27554&view=diff ============================================================================== --- branches/S2_6/client/packhand.c (original) +++ branches/S2_6/client/packhand.c Tue Jan 6 13:06:10 2015 @@ -3952,7 +3952,7 @@ if (actor_unit && target_tile && (target_city || target_unit)) { /* At least one action must be possible */ action_iterate(act) { - if (act_prob[act]) { + if (action_prob_possible(act_prob[act])) { valid = TRUE; break; } _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits