From 3ba8bc84d018da1452880ac897a433ca7752ebb5 Mon Sep 17 00:00:00 2001 From: ennewalker Date: Tue, 1 Jul 2008 05:23:50 +0000 Subject: [2004464] Fixing Slime:6 issues where '|' was not creating any loot. This was due to the KMASK entry which erroneously replaced the glyph with floor. (Lots of thanks to zelgadis for pointing out KMASK as the culprit.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6281 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/mapdef.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crawl-ref/source/mapdef.cc') diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc index 89b9607479..851c9819fe 100644 --- a/crawl-ref/source/mapdef.cc +++ b/crawl-ref/source/mapdef.cc @@ -3027,6 +3027,14 @@ std::string keyed_mapspec::set_mask(const std::string &s, bool garbage) return (err); } + // If not also a KFEAT... + if (feat.feats.size() == 0) + { + feature_spec fsp(-1, 10); + fsp.glyph = key_glyph; + feat.feats.push_back(fsp); + } + return (err); } -- cgit v1.2.3-54-g00ecf