ref: 33de1a833e48b3cb8c797134bb279d90d07e65ad
parent: 5106190ad22335a3906553159d662432c2f2a314
author: Simon Tatham <anakin@pobox.com>
date: Tue May 4 05:18:33 EDT 2004
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]
--- a/net.c
+++ b/net.c
@@ -751,8 +751,8 @@
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;
/*