diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2023-07-31 23:08:20 +0100 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-07-31 23:08:20 +0100 |
| commit | 0dd01866627e82ea21ed0e85021abdb070e0159c (patch) | |
| tree | a909bc56c492914c5340246be6a92d5da2801188 | |
| parent | ecb3a9d6f219e95c694d7857f579c9ef2ebad064 (diff) | |
| download | puzzles-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |