diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
commit | 98ae117c0944ca54417088a55eb8f22a9e1e0733 (patch) | |
tree | 2c71ac2f113a9749cf729e67a2e7a3986c261413 /src/cave.cc | |
parent | 6006546b4d015619b7d119d400fac819da6bc826 (diff) |
Factor out 'disturb_state' option handling
Diffstat (limited to 'src/cave.cc')
-rw-r--r-- | src/cave.cc | 13 |
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) */ |