diff options
| author | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2007-03-16 13:32:43 +0000 |
|---|---|---|
| committer | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2007-03-16 13:32:43 +0000 |
| commit | 02cd67ecb676cb1296d29630483e786f4f0303f6 (patch) | |
| tree | 403696cfbba94b35031b6c2568f3faf5b761620f | |
| parent | 67b37596c2d01b993d540aceaffa936606755f5b (diff) | |
| download | puzzles-02cd67ecb676cb1296d29630483e786f4f0303f6.zip puzzles-02cd67ecb676cb1296d29630483e786f4f0303f6.tar.gz puzzles-02cd67ecb676cb1296d29630483e786f4f0303f6.tar.bz2 puzzles-02cd67ecb676cb1296d29630483e786f4f0303f6.tar.xz | |
Disallow clicks between squares.
[originally from svn r7400]
| -rw-r--r-- | unequal.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |