summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/showsymb.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2012-11-14 18:39:35 -0500
committerNeil Moore <neil@s-z.org>2012-11-14 18:41:26 -0500
commit9a597fea2c79e878ae0f5c624185459241e7615c (patch)
treea0830b488494926c0c83437a3b0215d18d599e3e /crawl-ref/source/showsymb.cc
parent68bdec137909c3b2cdb8f57b60552cc0b8fd0ff0 (diff)
downloadcrawl-ref-9a597fea2c79e878ae0f5c624185459241e7615c.tar.gz
crawl-ref-9a597fea2c79e878ae0f5c624185459241e7615c.zip
Fix screenshots.
get_cell_show_class() was returning SH_FEATURE for DNGN_UNSEEN, which resulted in the glyph's character being '\0', which led to screenshot() skipping those cells entirely rather than printing a space.
Diffstat (limited to 'crawl-ref/source/showsymb.cc')
-rw-r--r--crawl-ref/source/showsymb.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/showsymb.cc b/crawl-ref/source/showsymb.cc
index 02f390aba9..52844339ea 100644
--- a/crawl-ref/source/showsymb.cc
+++ b/crawl-ref/source/showsymb.cc
@@ -265,7 +265,7 @@ show_class get_cell_show_class(const map_cell& cell,
if (feat_is_trap(cell.feat())
|| is_critical_feature(cell.feat())
- || cell.feat() < DNGN_MINMOVE)
+ || (cell.feat() && cell.feat() < DNGN_MINMOVE))
{
return SH_FEATURE;
}