summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.h
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2012-07-06 20:30:51 -0400
committerNeil Moore <neil@s-z.org>2012-07-06 21:49:03 -0400
commit51a2f406346d6c5f295618cf0563e21c00cca7be (patch)
tree7062f3f3aeeda50db8dfc39505086ee824949d72 /crawl-ref/source/stash.h
parent81afa9b3e9ed1e5d4886dc3a9c635366a62afcae (diff)
downloadcrawl-ref-51a2f406346d6c5f295618cf0563e21c00cca7be.tar.gz
crawl-ref-51a2f406346d6c5f295618cf0563e21c00cca7be.zip
Use correct feature name in stashes.
We were looking up the feature description for the item's (x,y) position... on the current level. The problem was introduced by commit 84529d6, but portals had the same problem before then (which is why Ctrl-F trove never worked). Now we also store the feature's description in the stash. For old saves, we use the default description for that type of feature (ignoring overrides) until we next update the stash. Floor and other uninteresting features are stored as the empty string. Fixes #5880.
Diffstat (limited to 'crawl-ref/source/stash.h')
-rw-r--r--crawl-ref/source/stash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/stash.h b/crawl-ref/source/stash.h
index f5ca23fd28..0dd607b02d 100644
--- a/crawl-ref/source/stash.h
+++ b/crawl-ref/source/stash.h
@@ -94,6 +94,7 @@ private:
uint8_t x, y;
int abspos;
dungeon_feature_type feat;
+ std::string feat_desc; // Only for interesting features.
trap_type trap;
std::vector<item_def> items;