summaryrefslogtreecommitdiff
path: root/src/cave.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
committerBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
commit55729f1d5e1c656fa909e9c18275107d206aedea (patch)
treeae027c112f40708efd6fe2570b3bc49dc5f6bb97 /src/cave.cc
parent98ae117c0944ca54417088a55eb8f22a9e1e0733 (diff)
Factor out 'disturb_other' option handling
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 b9cc4fe7..22ec8d39 100644
--- a/src/cave.cc
+++ b/src/cave.cc
@@ -4473,6 +4473,19 @@ void disturb_on_state()
/*
+ * Disturb if option 'disturb_other' is set.
+ */
+void disturb_on_other()
+{
+ if (disturb_other)
+ {
+ disturb(1);
+ }
+}
+
+
+
+/*
* Return the index of the random quest on this level
* (or zero)
*/