From 0dd01866627e82ea21ed0e85021abdb070e0159c Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 31 Jul 2023 23:08:20 +0100 Subject: Distinguish MOVE_UNUSED from MOVE_NO_EFFECT in Same Game --- samegame.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samegame.c b/samegame.c index d0f75b3..c55dafc 100644 --- a/samegame.c +++ b/samegame.c @@ -1305,11 +1305,11 @@ static char *interpret_move(const game_state *state, game_ui *ui, tx = ui->xsel; ty = ui->ysel; } else - return NULL; + return MOVE_UNUSED; if (tx < 0 || tx >= state->params.w || ty < 0 || ty >= state->params.h) - return NULL; - if (COL(state, tx, ty) == 0) return NULL; + return MOVE_UNUSED; + if (COL(state, tx, ty) == 0) return MOVE_NO_EFFECT; if (ISSEL(ui,tx,ty)) { if (button == RIGHT_BUTTON || button == CURSOR_SELECT2) -- cgit v1.1