From 88f86918bfca1935c07eee7f84d98e32ccc2f593 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 24 Jun 2023 18:37:58 +0100 Subject: [PATCH] Distinguish MOVE_UNUSED from MOVE_NO_EFFECT in Flip --- flip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flip.c b/flip.c index c53d2b9..1efacf8 100644 --- a/flip.c +++ b/flip.c @@ -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; } } }