aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-08-12 00:58:16 +0100
committerBen Harris <bjh21@bjh21.me.uk>2023-08-13 16:44:24 +0100
commit568c22210611f369e11b9348a6e1145bba9c6ee7 (patch)
treea857cc97eeea820a1772c78703cc3f30ab8cc75b
parent0fa62ae4ff98e6cd213c09995fadf979b74d8f6a (diff)
downloadpuzzles-568c22210611f369e11b9348a6e1145bba9c6ee7.zip
puzzles-568c22210611f369e11b9348a6e1145bba9c6ee7.tar.gz
puzzles-568c22210611f369e11b9348a6e1145bba9c6ee7.tar.bz2
puzzles-568c22210611f369e11b9348a6e1145bba9c6ee7.tar.xz
Towers: use new move_cursor() features
-rw-r--r--towers.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/towers.c b/towers.c
index 0e93c09..c26e530 100644
--- a/towers.c
+++ b/towers.c
@@ -1519,10 +1519,8 @@ static char *interpret_move(const game_state *state, game_ui *ui,
}
return NULL;
}
- move_cursor(button, &ui->hx, &ui->hy, w, w, false, NULL);
- ui->hshow = true;
ui->hcursor = true;
- return MOVE_UI_UPDATE;
+ return move_cursor(button, &ui->hx, &ui->hy, w, w, false, &ui->hshow);
}
if (ui->hshow &&
(button == CURSOR_SELECT)) {