~mdw
/
sgt
/
puzzles
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d79d5d
)
Net puzzles more than 32 tiles wide weren't working properly due to
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 4 May 2004 09:18:33 +0000
(09:18 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 4 May 2004 09:18:33 +0000
(09:18 +0000)
me testing the wrong variables for clicks on the tile border...
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4197
cda61777
-01e9-0310-a592-
d414129be87e
net.c
patch
|
blob
|
blame
|
history
diff --git
a/net.c
b/net.c
index
b3b0a39
..
0774de3
100644
(file)
--- a/
net.c
+++ b/
net.c
@@
-751,8
+751,8
@@
game_state *make_move(game_state *state, int x, int y, int button)
ty = y / TILE_SIZE;
if (tx >= state->width || ty >= state->height)
return NULL;
- if (
t
x % TILE_SIZE >= TILE_SIZE - TILE_BORDER ||
-
t
y % TILE_SIZE >= TILE_SIZE - TILE_BORDER)
+ if (x % TILE_SIZE >= TILE_SIZE - TILE_BORDER ||
+ y % TILE_SIZE >= TILE_SIZE - TILE_BORDER)
return NULL;
/*