Author: sveinung Date: Sat Apr 1 22:17:40 2017 New Revision: 35187 URL: http://svn.gna.org/viewcvs/freeciv?rev=35187&view=rev Log: Comment improvement
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=35187&r1=35186&r2=35187&view=diff ============================================================================== --- branches/S3_0/server/savegame3.c (original) +++ branches/S3_0/server/savegame3.c Sat Apr 1 22:17:40 2017 @@ -5787,10 +5787,10 @@ case ORDER_PERFORM_ACTION: action_buf[j] = num2char(punit->orders.list[j].action); /* Encoding with num2char() limits the number of actions. */ - /* Note: <= is the correct operator. ACTION_COUNT is number of - * actions (the last action + 1). strlen(num_chars) is the number - * of chars (the last char + 1). The assert is supposed to be - * true. */ + /* Note: <= is the correct operator. MAX_NUM_ACTIONS is number of + * actions (the last action id + 1). strlen(num_chars) is the + * number of chars (the last char position + 1). The assert is + * supposed to be true. */ FC_STATIC_STRLEN_ASSERT(MAX_NUM_ACTIONS <= strlen(num_chars), can_not_encode_all_actions); _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits