Moved state_change to misc.c to start using it in main.c, too
This commit is contained in:
parent
df422fe2ed
commit
40ff648431
5 changed files with 17 additions and 14 deletions
|
@ -6,13 +6,6 @@
|
|||
|
||||
static int fill(token_t, token_t);
|
||||
|
||||
static void state_change(long obj, long state)
|
||||
/* Object must have a change-message list for this to be useful; only some do */
|
||||
{
|
||||
game.prop[obj] = state;
|
||||
pspeak(obj, change, state, true);
|
||||
}
|
||||
|
||||
static int attack(struct command_t *command)
|
||||
/* Attack. Assume target if unambiguous. "Throw" also links here.
|
||||
* Attackable objects fall into two categories: enemies (snake,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue