X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/9c90045a9117ea51cc4bf90186fe98a04e37b8a7..7fb7e7c120bf5d4e2dba21f1a76ea98c51b5b818:/unequal.c diff --git a/unequal.c b/unequal.c index c9d2c60..26fcd41 100644 --- a/unequal.c +++ b/unequal.c @@ -1299,10 +1299,6 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds, return ""; } } - if (button == 'H' || button == 'h') - return dupstr("H"); - if (button == 'M' || button == 'm') - return dupstr("M"); if (IS_CURSOR_MOVE(button)) { move_cursor(button, &ui->hx, &ui->hy, ds->order, ds->order, 0); @@ -1340,6 +1336,12 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds, return dupstr(buf); } + + if (button == 'H' || button == 'h') + return dupstr("H"); + if (button == 'M' || button == 'm') + return dupstr("M"); + return NULL; }