Moved state_change to misc.c to start using it in main.c, too

This commit is contained in:
NHOrus 2017-07-05 20:23:34 +03:00
parent df422fe2ed
commit 40ff648431
5 changed files with 17 additions and 14 deletions

7
misc.c
View file

@ -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);
}