Author: sveinung Date: Wed Mar 22 16:34:09 2017 New Revision: 35153 URL: http://svn.gna.org/viewcvs/freeciv?rev=35153&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: branches/S3_0/server/savegame3.c Modified: branches/S3_0/server/savegame3.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S3_0/server/savegame3.c?rev=35153&r1=35152&r2=35153&view=diff ============================================================================== --- branches/S3_0/server/savegame3.c (original) +++ branches/S3_0/server/savegame3.c Wed Mar 22 16:34:09 2017 @@ -5791,7 +5791,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