Author: sveinung Date: Tue Jan 6 12:42:34 2015 New Revision: 27549 URL: http://svn.gna.org/viewcvs/freeciv?rev=27549&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: trunk/client/packhand.c Modified: trunk/client/packhand.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/client/packhand.c?rev=27549&r1=27548&r2=27549&view=diff ============================================================================== --- trunk/client/packhand.c (original) +++ trunk/client/packhand.c Tue Jan 6 12:42:34 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