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
7
misc.c
7
misc.c
|
@ -689,3 +689,10 @@ void bug(enum bugtype num, const char *error_string)
|
|||
// LCOV_EXCL_STOP
|
||||
|
||||
/* end */
|
||||
|
||||
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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue