Attempting voodoo change to banish GitLab error.

This shouldn't be necessary.
This commit is contained in:
Eric S. Raymond 2018-11-18 12:39:04 -05:00
parent deb489cd8c
commit 08f77c692a
2 changed files with 8 additions and 1 deletions

View file

@ -231,7 +231,7 @@ extern int suspend(void);
extern int resume(void); extern int resume(void);
extern int restore(FILE *); extern int restore(FILE *);
extern long initialise(void); extern long initialise(void);
extern int action(command_t command); extern int action(command_t);
extern void state_change(obj_t, int); extern void state_change(obj_t, int);
extern bool is_valid(struct game_t); extern bool is_valid(struct game_t);

7
main.c
View file

@ -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() static bool do_command()
/* Get and execute a command */ /* Get and execute a command */
{ {