And fix the error _I_ made in r7311. I should stop coding now,
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 22 Feb 2007 19:05:10 +0000 (19:05 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 22 Feb 2007 19:05:10 +0000 (19:05 +0000)
because I'm clearly too sleepy to get it right.

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

galaxies.c

index 58e33eb..19d5624 100644 (file)
@@ -2225,8 +2225,8 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
     } else if (button == RIGHT_BUTTON) {
         int px1, py1;
 
-        px = 2*(int)(FROMCOORD((float)x) + 0.5);
-        py = 2*(int)(FROMCOORD((float)y) + 0.5);
+        px = (int)(2*FROMCOORD((float)x) + 0.5);
+        py = (int)(2*FROMCOORD((float)y) + 0.5);
 
         dot = NULL;