Author: sveinung Date: Wed Mar 22 16:31:23 2017 New Revision: 35150 URL: http://svn.gna.org/viewcvs/freeciv?rev=35150&view=rev Log: "Able to save all actions" checks actions.
Make the assertion that all actions can be saved in a unit order check the max number of actions. This prepares it for generic actions. See hrm Feature #646480 Modified: trunk/server/savegame3.c Modified: trunk/server/savegame3.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/savegame3.c?rev=35150&r1=35149&r2=35150&view=diff ============================================================================== --- trunk/server/savegame3.c (original) +++ trunk/server/savegame3.c Wed Mar 22 16:31:23 2017 @@ -5811,7 +5811,7 @@ * actions (the last action + 1). strlen(num_chars) is the number * of chars (the last char + 1). The assert is supposed to be * true. */ - FC_STATIC_STRLEN_ASSERT(ACTION_COUNT <= strlen(num_chars), + FC_STATIC_STRLEN_ASSERT(MAX_NUM_ACTIONS <= strlen(num_chars), can_not_encode_all_actions); tgt_vec[j] = punit->orders.list[j].target; _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits