From 2a76d0662f9494f8469283a7b0fc72c17f40ecf6 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Fri, 9 Jan 2015 18:31:29 +0100 Subject: implement a way to define who is targetable by an action we can specify who are the targets of an action by setting the field entry->action.target it can be a combination of one or more specifiers, such as: one team an eneny self everyone Signed-off-by: Olivier Gayot --- jouer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jouer.c') diff --git a/jouer.c b/jouer.c index 5050a29..95ee0f4 100644 --- a/jouer.c +++ b/jouer.c @@ -216,7 +216,7 @@ enum action_state_t dig_entry(const struct entry_t *entries, int cnt_entries, st case SDLK_RETURN: target = &entries[selection]; if (!target->children_cnt) { - enum action_state_t state = select_target(params, target->data, target->f); + enum action_state_t state = select_target(params, target->action.data, target->action.f); if (state == ACTION_PERFORMED) return ACTION_PERFORMED; -- cgit v1.2.3