aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-05-04 09:18:33 +0000
committerSimon Tatham <anakin@pobox.com>2004-05-04 09:18:33 +0000
commit33de1a833e48b3cb8c797134bb279d90d07e65ad (patch)
treedd89ae476b52d02ef2b232adf08bff715306be43
parent5106190ad22335a3906553159d662432c2f2a314 (diff)
downloadpuzzles-33de1a833e48b3cb8c797134bb279d90d07e65ad.zip
puzzles-33de1a833e48b3cb8c797134bb279d90d07e65ad.tar.gz
puzzles-33de1a833e48b3cb8c797134bb279d90d07e65ad.tar.bz2
puzzles-33de1a833e48b3cb8c797134bb279d90d07e65ad.tar.xz
Net puzzles more than 32 tiles wide weren't working properly due to
me testing the wrong variables for clicks on the tile border... [originally from svn r4197]
-rw-r--r--net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net.c b/net.c
index b3b0a39..0774de3 100644
--- 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 (tx % TILE_SIZE >= TILE_SIZE - TILE_BORDER ||
- ty % TILE_SIZE >= TILE_SIZE - TILE_BORDER)
+ if (x % TILE_SIZE >= TILE_SIZE - TILE_BORDER ||
+ y % TILE_SIZE >= TILE_SIZE - TILE_BORDER)
return NULL;
/*