From b4b86bbdbeb99c9fd9cfa6b61454047eb5e8fe20 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Thu, 17 Aug 2017 15:26:41 -0400 Subject: Untangle: change cursor-only behavior --- untangle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/untangle.c b/untangle.c index 5eb8590..48109bb 100644 --- a/untangle.c +++ b/untangle.c @@ -1119,6 +1119,7 @@ static char *interpret_move(const game_state *state, game_ui *ui, if (bestd <= DRAG_THRESHOLD * DRAG_THRESHOLD) { ui->dragpoint = best; + ui->cursorpoint = -1; ui->newpoint.x = x; ui->newpoint.y = y; ui->newpoint.d = ds->tilesize; @@ -1135,8 +1136,7 @@ static char *interpret_move(const game_state *state, game_ui *ui, char buf[80]; ui->dragpoint = -1; /* terminate drag, no matter what */ - ui->cursorpoint = -1; /* also eliminate the cursor point */ - + /* * First, see if we're within range. The user can cancel a * drag by dragging the point right off the window. -- cgit v1.1