Moved state_change to misc.c to start using it in main.c, too
[open-adventure.git] / misc.c
diff --git a/misc.c b/misc.c
index a2626b4d3f02ae66ea69ed4dbf99c4c1939debe0..b4869d8568d4f2ac5b46b4b25caac491eccde1af 100644 (file)
--- a/misc.c
+++ b/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);
+}
\ No newline at end of file