diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-05-04 09:18:33 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-05-04 09:18:33 +0000 |
| commit | 33de1a833e48b3cb8c797134bb279d90d07e65ad (patch) | |
| tree | dd89ae476b52d02ef2b232adf08bff715306be43 | |
| parent | 5106190ad22335a3906553159d662432c2f2a314 (diff) | |
| download | puzzles-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; /* |