mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
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]
This commit is contained in:
4
net.c
4
net.c
@ -751,8 +751,8 @@ game_state *make_move(game_state *state, int x, int y, int button)
|
|||||||
ty = y / TILE_SIZE;
|
ty = y / TILE_SIZE;
|
||||||
if (tx >= state->width || ty >= state->height)
|
if (tx >= state->width || ty >= state->height)
|
||||||
return NULL;
|
return NULL;
|
||||||
if (tx % TILE_SIZE >= TILE_SIZE - TILE_BORDER ||
|
if (x % TILE_SIZE >= TILE_SIZE - TILE_BORDER ||
|
||||||
ty % TILE_SIZE >= TILE_SIZE - TILE_BORDER)
|
y % TILE_SIZE >= TILE_SIZE - TILE_BORDER)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user