summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-10-19 05:09:59 -0700
committerMatthew Cline <zelgadis@sourceforge.net>2009-10-19 05:09:59 -0700
commitd1518942ea85f402908093af18f3d98d5f77332d (patch)
tree8c8c6a088f7f01584743ebf9345816fa96b9b171 /crawl-ref/source/directn.cc
parent2cc88c3a5135766236f07916506ee13d651f173f (diff)
downloadcrawl-ref-d1518942ea85f402908093af18f3d98d5f77332d.tar.gz
crawl-ref-d1518942ea85f402908093af18f3d98d5f77332d.zip
directn.cc: Fix arena crash on examine monster
Arena mode would crash if you examined monsters.
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r--crawl-ref/source/directn.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc
index 596fa92fb3..77409d718e 100644
--- a/crawl-ref/source/directn.cc
+++ b/crawl-ref/source/directn.cc
@@ -3179,7 +3179,8 @@ static std::string _get_monster_desc(const monsters *mon)
text += pronoun + " is a disembodied soul.\n";
dungeon_feature_type blocking_feat;
- if (_blocked_ray(mon->pos(), &blocking_feat))
+ if (!crawl_state.arena_suspended
+ && _blocked_ray(mon->pos(), &blocking_feat))
{
text += "Your line of fire to " + mon->pronoun(PRONOUN_OBJECTIVE)
+ " is blocked by "