Fix a UI glitch where dragging an existing arrow could change what it
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 25 Feb 2007 12:54:46 +0000 (12:54 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 25 Feb 2007 12:54:46 +0000 (12:54 +0000)
referred to.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@7331 cda61777-01e9-0310-a592-d414129be87e

galaxies.c

index 9e4f4fd..e10db3a 100644 (file)
@@ -2245,8 +2245,8 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
                      * Found a dot. Begin a drag from it.
                      */
                     dot = &SPACE(state, px1, py1);
-                    ui->srcx = px;
-                    ui->srcy = py;
+                    ui->srcx = px1;
+                    ui->srcy = py1;
                     goto done;         /* multi-level break */
                 }
             }