summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/delay.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-03 21:58:43 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-03 21:58:43 +0000
commit8152dfbf1c24aa7c89aa3129938abf1bb45b2b30 (patch)
treec11590a9e025a1049117d0e979b31f78d33f341f /crawl-ref/source/delay.cc
parent89ad96df0502f1845c5d5a0d54d5531bd731fbb6 (diff)
downloadcrawl-ref-8152dfbf1c24aa7c89aa3129938abf1bb45b2b30.tar.gz
crawl-ref-8152dfbf1c24aa7c89aa3129938abf1bb45b2b30.zip
Add still more miscellaneous minor fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7377 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/delay.cc')
-rw-r--r--crawl-ref/source/delay.cc16
1 files changed, 9 insertions, 7 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc
index 0b1bbaae46..8ffc76b8a8 100644
--- a/crawl-ref/source/delay.cc
+++ b/crawl-ref/source/delay.cc
@@ -219,17 +219,19 @@ static int _recite_to_monsters(coord_def where, int pow, int unused)
static std::string _get_recite_speech(const std::string key, int weight)
{
- seed_rng( weight + you.pos().x + you.pos().y);
+ seed_rng(weight + you.pos().x + you.pos().y);
const std::string str = getSpeakString("zin_recite_speech_" + key);
- if (!str.empty())
- return (str);
+ if (str.empty())
+ {
+ // In case nothing is found.
+ if (key == "start")
+ return ("begin reciting the Axioms of Law.");
- // In case nothing is found.
- if (key == "start")
- return ("begin reciting the Axioms of Law.");
+ return ("reciting");
+ }
- return ("reciting");
+ return (str);
}
// Returns true if this delay can act as a parent to other delays, i.e. if