summaryrefslogtreecommitdiff
path: root/jouer.c
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-09 18:31:29 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-09 18:39:01 +0100
commit2a76d0662f9494f8469283a7b0fc72c17f40ecf6 (patch)
tree8420a57e6029a5d62a31343a13b51acbeb3e7d60 /jouer.c
parentdfe9604dc9e4292c9f0e420d3a926e8268178308 (diff)
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 <duskcoder@gmail.com>
Diffstat (limited to 'jouer.c')
-rw-r--r--jouer.c2
1 files changed, 1 insertions, 1 deletions
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;