summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-01 05:23:50 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-01 05:23:50 +0000
commit3ba8bc84d018da1452880ac897a433ca7752ebb5 (patch)
tree4f9715435f4be1b8d04cbfd554056e9ff848c585 /crawl-ref/source/mapdef.cc
parentd6e4c5ce865a05eb42abe48d311222d0ff98f34c (diff)
downloadcrawl-ref-3ba8bc84d018da1452880ac897a433ca7752ebb5.tar.gz
crawl-ref-3ba8bc84d018da1452880ac897a433ca7752ebb5.zip
[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
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r--crawl-ref/source/mapdef.cc8
1 files changed, 8 insertions, 0 deletions
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);
}