From 8152dfbf1c24aa7c89aa3129938abf1bb45b2b30 Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 3 Nov 2008 21:58:43 +0000 Subject: 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 --- crawl-ref/source/delay.cc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'crawl-ref/source') 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 -- cgit v1.2.3-54-g00ecf