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
(from parent 1:
5106190
)
Net puzzles more than 32 tiles wide weren't working properly due to
author
Simon Tatham
<anakin@pobox.com>
Tue, 4 May 2004 09:18:33 +0000
(09:18 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Tue, 4 May 2004 09:18:33 +0000
(09:18 +0000)
me testing the wrong variables for clicks on the tile border...
[originally from svn r4197]
net.c
patch
|
blob
|
history
diff --git
a/net.c
b/net.c
index b3b0a3949af87d11673dddad270812a1945f8f0d..0774de336b7de8afcc3c9696442228498bc5bf40 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;
/*