~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now that we're highlighting the currently selected preset in the
[sgt/puzzles]
/
unequal.c
diff --git
a/unequal.c
b/unequal.c
index
91ae118
..
acc33d7
100644
(file)
--- a/
unequal.c
+++ b/
unequal.c
@@
-1266,7
+1266,8
@@
static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
button &= ~MOD_MASK;
button &= ~MOD_MASK;
- if (x >= 0 && x < ds->order && y >= 0 && y < ds->order) {
+ if (x >= 0 && x < ds->order && ((ox - COORD(x)) <= TILE_SIZE) &&
+ y >= 0 && y < ds->order && ((oy - COORD(y)) <= TILE_SIZE)) {
if (button == LEFT_BUTTON) {
/* normal highlighting for non-immutable squares */
if (GRID(state, flags, x, y) & F_IMMUTABLE)
if (button == LEFT_BUTTON) {
/* normal highlighting for non-immutable squares */
if (GRID(state, flags, x, y) & F_IMMUTABLE)