From a943f3177f4adc591a282bdc62eef80675dc2a67 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sun, 4 Jun 2023 19:02:21 +0100 Subject: Add MOVE_NO_EFFECT and MOVE_UNUSED return values from interpret_move() These allow for distinguishing the case where a puzzle doesn't have a use for a key from the case where it just happens to have no effect in the current state of the puzzle. These were both represented by NULL, but that now represents the case where a puzzle hasn't been updated to make the distinction yet. --- misc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'misc.c') diff --git a/misc.c b/misc.c index 341b5ac..9a757d4 100644 --- a/misc.c +++ b/misc.c @@ -16,6 +16,8 @@ #include "puzzles.h" char MOVE_UI_UPDATE[] = ""; +char MOVE_NO_EFFECT[] = ""; +char MOVE_UNUSED[] = ""; void free_cfg(config_item *cfg) { -- cgit v1.1