~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a limited-shuffle mode like that added to Sixteen and Twiddle in r5769,
[sgt/puzzles]
/
twiddle.c
diff --git
a/twiddle.c
b/twiddle.c
index
871bd7f
..
a681059
100644
(file)
--- a/
twiddle.c
+++ b/
twiddle.c
@@
-594,6
+594,8
@@
static game_state *make_move(game_state *from, game_ui *ui, int x, int y,
game_state *ret;
int dir;
+ button = button & (~MOD_MASK | MOD_NUM_KEYPAD);
+
if (button == LEFT_BUTTON || button == RIGHT_BUTTON) {
/*
* Determine the coordinates of the click. We offset by n-1