mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Disallow clicks between squares.
[originally from svn r7400]
This commit is contained in:
@ -1266,7 +1266,8 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
|
||||
|
||||
button &= ~MOD_MASK;
|
||||
|
||||
if (x >= 0 && x < ds->order && y >= 0 && y < ds->order) {
|
||||
if (x >= 0 && x < ds->order && ((ox - COORD(x)) <= TILE_SIZE) &&
|
||||
y >= 0 && y < ds->order && ((oy - COORD(y)) <= TILE_SIZE)) {
|
||||
if (button == LEFT_BUTTON) {
|
||||
/* normal highlighting for non-immutable squares */
|
||||
if (GRID(state, flags, x, y) & F_IMMUTABLE)
|
||||
|
Reference in New Issue
Block a user