From 08f77c692a84d836e494c8cd469f5ac00524cf1c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 18 Nov 2018 12:39:04 -0500 Subject: [PATCH] Attempting voodoo change to banish GitLab error. This shouldn't be necessary. --- advent.h | 2 +- main.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/advent.h b/advent.h index 5e9871d..09f5ad9 100644 --- a/advent.h +++ b/advent.h @@ -231,7 +231,7 @@ extern int suspend(void); extern int resume(void); extern int restore(FILE *); extern long initialise(void); -extern int action(command_t command); +extern int action(command_t); extern void state_change(obj_t, int); extern bool is_valid(struct game_t); diff --git a/main.c b/main.c index 3f2776c..027f92d 100644 --- a/main.c +++ b/main.c @@ -972,6 +972,13 @@ static void listobjects(void) } } +void clear_command(command_t *cmd) +{ + cmd->verb = ACT_NULL; + game.oldobj = cmd->obj; + cmd->obj = NO_OBJECT; +} + static bool do_command() /* Get and execute a command */ { -- 2.31.1