diff options
| author | Jonas Kölker <jonaskoelker@yahoo.com> | 2015-10-05 10:03:57 +0200 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2015-10-18 11:01:51 +0100 |
| commit | 75335f199ea5fbc7b1af890473ec98dc340c2ae8 (patch) | |
| tree | f21ee22141e0753e3b52e93be5fab6fbd3d02d2e /bridges.c | |
| parent | fcf573c672b0aa862ccc087a74256ee214c277b5 (diff) | |
| download | puzzles-75335f199ea5fbc7b1af890473ec98dc340c2ae8.zip puzzles-75335f199ea5fbc7b1af890473ec98dc340c2ae8.tar.gz puzzles-75335f199ea5fbc7b1af890473ec98dc340c2ae8.tar.bz2 puzzles-75335f199ea5fbc7b1af890473ec98dc340c2ae8.tar.xz | |
Fix Bridges keyboard cursor vertical out-of-bounds error.
Position the cursor in the top (bottom) row, press enter and press up
(down). The game acts as if you had pressed right, both with Enter-
and Space-based dragging.
Diffstat (limited to 'bridges.c')
| -rw-r--r-- | bridges.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2376,6 +2376,8 @@ static char *interpret_move(const game_state *state, game_ui *ui, int nx = ui->cur_x, ny = ui->cur_y; move_cursor(button, &nx, &ny, state->w, state->h, 0); + if (nx == ui->cur_x && ny == ui->cur_y) + return NULL; update_drag_dst(state, ui, ds, COORD(nx)+TILE_SIZE/2, COORD(ny)+TILE_SIZE/2); |