mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
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.
This commit is contained in:

committed by
Simon Tatham

parent
fcf573c672
commit
75335f199e
@ -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);
|
||||
|
Reference in New Issue
Block a user