mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Pegs: clear ui->cur_jumping on undo or redo.
Fixes an assertion failure in which you move the keyboard cursor to a peg, press Enter to indicate that you're about to jump it to somewhere, and then instead execute an undo or redo action which replaces the peg with a hole. Thanks to Vitaly Ostrosablin for the report.
This commit is contained in:
6
pegs.c
6
pegs.c
@ -792,6 +792,12 @@ static void game_changed_state(game_ui *ui, const game_state *oldstate,
|
|||||||
* unoccupied.
|
* unoccupied.
|
||||||
*/
|
*/
|
||||||
ui->dragging = false;
|
ui->dragging = false;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Also, cancel a keyboard-driven jump if one is half way to being
|
||||||
|
* input.
|
||||||
|
*/
|
||||||
|
ui->cur_jumping = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define PREFERRED_TILE_SIZE 33
|
#define PREFERRED_TILE_SIZE 33
|
||||||
|
Reference in New Issue
Block a user