summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-02 08:39:09 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-02 08:39:09 +0000
commitc78ed8ca5a6f1528db2bfe1f846e24bef6695a89 (patch)
treeee56f5675e994787b5b0e16ac735c845a3f36c8b /crawl-ref/source/view.cc
parentbaeaf49b58e985d762e0772ef0ac1e10f0959dc8 (diff)
downloadcrawl-ref-c78ed8ca5a6f1528db2bfe1f846e24bef6695a89.tar.gz
crawl-ref-c78ed8ca5a6f1528db2bfe1f846e24bef6695a89.zip
Fix 1981533: Mouseclick allows eating inappropriate food types.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5434 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r--crawl-ref/source/view.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index 9e5367e852..8cf0f47afe 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -873,6 +873,8 @@ void handle_monster_shouts(monsters* monster, bool force)
// Get it once, since monster might be S_RANDOM, in which case
// mons_shouts() will return a different value every time.
+ // Demon lords will insult you as a greeting, but later we'll
+ // choose a random verb and loudness for them.
shout_type s_type = mons_shouts(monster->type, false);
// Silent monsters can give noiseless "visual shouts" if the
@@ -995,7 +997,7 @@ void handle_monster_shouts(monsters* monster, bool force)
}
else if (s_type == S_SILENT && (msg == "" || msg == "__NONE"))
{
- ; // No "visual shout" defined for silent monster, do nothing
+ ; // No "visual shout" defined for silent monster, do nothing.
}
else if (msg == "")
{