summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r--crawl-ref/source/view.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index 1ecead7205..006fcf4d18 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -582,10 +582,8 @@ void monster_grid(bool do_updates)
}
else
{
- int the_shout = mons_shouts(monster->type);
-
strcpy(info, "You hear ");
- switch (the_shout)
+ switch (mons_shouts(monster->type))
{
case S_SILENT:
default:
@@ -639,7 +637,7 @@ void monster_grid(bool do_updates)
break;
}
- mpr(info);
+ mpr(info, MSGCH_SOUND);
}
}