aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-07-31 23:08:20 +0100
committerBen Harris <bjh21@bjh21.me.uk>2023-07-31 23:08:20 +0100
commit0dd01866627e82ea21ed0e85021abdb070e0159c (patch)
treea909bc56c492914c5340246be6a92d5da2801188
parentecb3a9d6f219e95c694d7857f579c9ef2ebad064 (diff)
downloadpuzzles-0dd01866627e82ea21ed0e85021abdb070e0159c.zip
puzzles-0dd01866627e82ea21ed0e85021abdb070e0159c.tar.gz
puzzles-0dd01866627e82ea21ed0e85021abdb070e0159c.tar.bz2
puzzles-0dd01866627e82ea21ed0e85021abdb070e0159c.tar.xz
Distinguish MOVE_UNUSED from MOVE_NO_EFFECT in Same Game
-rw-r--r--samegame.c6
1 files 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)