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:
a50a651
)
Typo in click bounds checking.
author
Simon Tatham
<anakin@pobox.com>
Wed, 1 Jun 2005 06:47:55 +0000
(06:47 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Wed, 1 Jun 2005 06:47:55 +0000
(06:47 +0000)
[originally from svn r5890]
mines.c
patch
|
blob
|
history
diff --git
a/mines.c
b/mines.c
index fcf439d6289e59d0dd732fc2f395865ac10b1d93..6a3d7aa64c0d738225be2944710bcacbc9881ec5 100644
(file)
--- a/
mines.c
+++ b/
mines.c
@@
-2454,7
+2454,7
@@
static game_state *make_move(game_state *from, game_ui *ui, game_drawstate *ds,
cx = FROMCOORD(x);
cy = FROMCOORD(y);
- if (cx < 0 || cx >= from->w || cy < 0 || cy > from->h)
+ if (cx < 0 || cx >= from->w || cy < 0 || cy >
=
from->h)
return NULL;
if (button == LEFT_BUTTON || button == LEFT_DRAG ||