chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67b3759
)
Disallow clicks between squares.
author
Jacob Nevins
<jacobn@chiark.greenend.org.uk>
Fri, 16 Mar 2007 13:32:43 +0000
(13:32 +0000)
committer
Jacob Nevins
<jacobn@chiark.greenend.org.uk>
Fri, 16 Mar 2007 13:32:43 +0000
(13:32 +0000)
[originally from svn r7400]
unequal.c
patch
|
blob
|
history
diff --git
a/unequal.c
b/unequal.c
index 91ae11858d227f9cf4b8aa11cc5f210490def2ab..acc33d76364befd4a6c7c4eb4f364a8730ffb879 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;
- 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)