diff options
author | Neil Moore <neil@s-z.org> | 2012-07-06 20:30:51 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-07-06 21:49:03 -0400 |
commit | 51a2f406346d6c5f295618cf0563e21c00cca7be (patch) | |
tree | 7062f3f3aeeda50db8dfc39505086ee824949d72 /crawl-ref/source/stash.h | |
parent | 81afa9b3e9ed1e5d4886dc3a9c635366a62afcae (diff) | |
download | crawl-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.h | 1 |
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; |