diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2023-06-24 18:37:58 +0100 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-06-24 18:37:58 +0100 |
| commit | 88f86918bfca1935c07eee7f84d98e32ccc2f593 (patch) | |
| tree | 468e9276ddc71bf00d6b5f3c4aed01fbc10872c1 /flip.c | |
| parent | f749a33c5eeb67b19305085feebfe35b0ccaffd0 (diff) | |
| download | puzzles-88f86918bfca1935c07eee7f84d98e32ccc2f593.zip puzzles-88f86918bfca1935c07eee7f84d98e32ccc2f593.tar.gz puzzles-88f86918bfca1935c07eee7f84d98e32ccc2f593.tar.bz2 puzzles-88f86918bfca1935c07eee7f84d98e32ccc2f593.tar.xz | |
Distinguish MOVE_UNUSED from MOVE_NO_EFFECT in Flip
Diffstat (limited to '')
| -rw-r--r-- | flip.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -950,7 +950,7 @@ static char *interpret_move(const game_state *state, game_ui *ui, int x, int y, int button) { int w = state->w, h = state->h, wh = w * h; - char buf[80], *nullret = NULL; + char buf[80], *nullret = MOVE_UNUSED; if (button == LEFT_BUTTON || IS_CURSOR_SELECT(button)) { int tx, ty; @@ -979,7 +979,7 @@ static char *interpret_move(const game_state *state, game_ui *ui, sprintf(buf, "M%d,%d", tx, ty); return dupstr(buf); } else { - return NULL; + return MOVE_NO_EFFECT; } } } |