projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
deb489c
)
Attempting voodoo change to banish GitLab error.
author
Eric S. Raymond
<esr@thyrsus.com>
Sun, 18 Nov 2018 17:39:04 +0000
(12:39 -0500)
committer
Eric S. Raymond
<esr@thyrsus.com>
Sun, 18 Nov 2018 17:39:04 +0000
(12:39 -0500)
This shouldn't be necessary.
advent.h
patch
|
blob
|
history
main.c
patch
|
blob
|
history
diff --git
a/advent.h
b/advent.h
index 5e9871d4ed7a65c10497a251429bdb3b5e98c218..09f5ad99271d427f31f3b347ba5f6e9097799d80 100644
(file)
--- 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 3f2776c227e65ff35eb08a2de116e94f549ab7e5..027f92d46ba00fa5bd4c4541ca52737944dbcdbd 100644
(file)
--- 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 */
{