X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/1185e3c5eaf5a0ac405e14939e7ee818914e0701..713e4ddec31717b4f136720d3e387dbd286c0bf6:/sixteen.c diff --git a/sixteen.c b/sixteen.c index 966cc0f..2bfaadd 100644 --- a/sixteen.c +++ b/sixteen.c @@ -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;