X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/1185e3c5eaf5a0ac405e14939e7ee818914e0701..511dac16da218ed6716a876847e02e8478b05812:/sixteen.c diff --git a/sixteen.c b/sixteen.c index 966cc0f..8f43b7a 100644 --- a/sixteen.c +++ b/sixteen.c @@ -442,7 +442,7 @@ static char *validate_desc(game_params *params, char *desc) return err; } -static game_state *new_game(game_params *params, char *desc) +static game_state *new_game(midend_data *me, game_params *params, char *desc) { game_state *state = snew(game_state); int i; @@ -572,6 +572,7 @@ static game_state *make_move(game_state *from, game_ui *ui, int dx, dy, tx, ty, n; game_state *ret; + button &= ~MOD_MASK; if (button != LEFT_BUTTON && button != RIGHT_BUTTON) return NULL; @@ -936,7 +937,7 @@ static void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate, } static float game_anim_length(game_state *oldstate, - game_state *newstate, int dir) + game_state *newstate, int dir, game_ui *ui) { if ((dir > 0 && newstate->just_used_solve) || (dir < 0 && oldstate->just_used_solve)) @@ -946,7 +947,7 @@ static float game_anim_length(game_state *oldstate, } static float game_flash_length(game_state *oldstate, - game_state *newstate, int dir) + game_state *newstate, int dir, game_ui *ui) { if (!oldstate->completed && newstate->completed && !oldstate->used_solve && !newstate->used_solve)