summaryrefslogtreecommitdiff
path: root/src/cave.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cave.cc')
-rw-r--r--src/cave.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cave.cc b/src/cave.cc
index 52855a8b..b9cc4fe7 100644
--- a/src/cave.cc
+++ b/src/cave.cc
@@ -4460,6 +4460,19 @@ void disturb(int stop_search)
/*
+ * Disturb if option 'disturb_state' is set.
+ */
+void disturb_on_state()
+{
+ if (disturb_state)
+ {
+ disturb(0);
+ }
+}
+
+
+
+/*
* Return the index of the random quest on this level
* (or zero)
*/