X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/2769dce562b682b172161f8338c387097b786dba..57046465d3de05a21fb9a6e540ba064f2ed70010:/galaxies.c diff --git a/galaxies.c b/galaxies.c index d59509e..9487a54 100644 --- a/galaxies.c +++ b/galaxies.c @@ -1216,8 +1216,8 @@ generate: clear_game(state, 1); ntries++; - //generate_pass(state, rs, scratch, 10, GP_DOTS); - //generate_pass(state, rs, scratch, 100, 0); + /* generate_pass(state, rs, scratch, 10, GP_DOTS); */ + /* generate_pass(state, rs, scratch, 100, 0); */ generate_pass(state, rs, scratch, 100, GP_DOTS); game_update_dots(state); @@ -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*(FROMCOORD( (int)((float)x + 0.5) )); - py = 2*(FROMCOORD( (int)((float)y + 0.5) )); + px = (int)(2*FROMCOORD((float)x) + 0.5); + py = (int)(2*FROMCOORD((float)y) + 0.5); dot = NULL; @@ -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 */ } } @@ -3230,7 +3230,7 @@ const struct game thegame = { FALSE, FALSE, NULL, NULL, TRUE, /* wants_statusbar */ #else - TRUE, TRUE, game_print_size, game_print, + TRUE, FALSE, game_print_size, game_print, FALSE, /* wants_statusbar */ #endif FALSE, game_timing_state,