projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made feeding a switch instead of elsif chain
[open-adventure.git]
/
misc.c
diff --git
a/misc.c
b/misc.c
index a2626b4d3f02ae66ea69ed4dbf99c4c1939debe0..c219cfb059ec4b1f38570e208f1c7e498fd7fe45 100644
(file)
--- a/
misc.c
+++ b/
misc.c
@@
-402,7
+402,7
@@
bool yes(const char* question, const char* yes_response, const char* no_response
for (;;) {
speak(question);
for (;;) {
speak(question);
- char*
reply = get_input();
+ char* reply = get_input();
if (reply == NULL) {
// LCOV_EXCL_START
// Should be unreachable. Reply should never be NULL
if (reply == NULL) {
// LCOV_EXCL_START
// Should be unreachable. Reply should never be NULL
@@
-689,3
+689,10
@@
void bug(enum bugtype num, const char *error_string)
// LCOV_EXCL_STOP
/* end */
// 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