Author: sveinung Date: Mon Mar 20 11:37:17 2017 New Revision: 35135 URL: http://svn.gna.org/viewcvs/freeciv?rev=35135&view=rev Log: Prepare action storage for generic actions.
See hrm Feature #645783 Modified: branches/S3_0/common/actions.c Modified: branches/S3_0/common/actions.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S3_0/common/actions.c?rev=35135&r1=35134&r2=35135&view=diff ============================================================================== --- branches/S3_0/common/actions.c (original) +++ branches/S3_0/common/actions.c Mon Mar 20 11:37:17 2017 @@ -70,12 +70,13 @@ /* Action probability unsupported when min is this. */ #define ACTPROB_VAL_NOT_IMPL 254 -static struct action *actions[ACTION_COUNT]; +static struct action *actions[MAX_NUM_ACTIONS]; struct action_auto_perf auto_perfs[MAX_NUM_ACTION_AUTO_PERFORMERS]; static bool actions_initialized = FALSE; -static struct action_enabler_list *action_enablers_by_action[ACTION_COUNT]; - +static struct action_enabler_list *action_enablers_by_action[MAX_NUM_ACTIONS]; + +/* Hard requirements relates to action result. */ static struct obligatory_req_vector obligatory_hard_reqs[ACTION_COUNT]; static struct action *action_new(enum gen_action id, _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits