summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-10 01:00:46 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-10 01:00:46 +0100
commitf4ba62fdcf3940c0ad5b9f6e7b142bceb148c034 (patch)
tree51ddf1dd689fd997488b1b746d57281c76a12409
parenta1f75a644e0119fa6e31b0a0c852b71f6fc28410 (diff)
hide the action frame when selecting a target
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rw-r--r--jouer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/jouer.c b/jouer.c
index 29365f3..2a444e0 100644
--- a/jouer.c
+++ b/jouer.c
@@ -274,7 +274,11 @@ 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->action);
+ enum action_state_t state;
+
+ update_list_entries(params->surfaces, params->positions, entries, cnt_entries, -1);
+
+ state = select_target(params, &target->action);
if (state == ACTION_PERFORMED)
return ACTION_PERFORMED;