From: Simon Tatham Date: Tue, 4 May 2004 09:18:33 +0000 (+0000) Subject: Net puzzles more than 32 tiles wide weren't working properly due to X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=33de1a833e48b3cb8c797134bb279d90d07e65ad;hp=5106190ad22335a3906553159d662432c2f2a314;p=sgt-puzzles.git 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] --- 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; /*