Keen: use new move_cursor() features

This commit is contained in:
Ben Harris
2023-08-09 23:52:08 +01:00
parent 995bcef981
commit df2d6d347e

4
keen.c
View File

@ -1783,10 +1783,8 @@ static char *interpret_move(const game_state *state, game_ui *ui,
} }
} }
if (IS_CURSOR_MOVE(button)) { if (IS_CURSOR_MOVE(button)) {
move_cursor(button, &ui->hx, &ui->hy, w, w, false, NULL);
ui->hshow = true;
ui->hcursor = true; ui->hcursor = true;
return MOVE_UI_UPDATE; return move_cursor(button, &ui->hx, &ui->hy, w, w, false, &ui->hshow);
} }
if (ui->hshow && if (ui->hshow &&
(button == CURSOR_SELECT)) { (button == CURSOR_SELECT)) {