summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-04 23:54:14 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-04 23:54:14 +0000
commit38cb4b1f9f75c3695a14723f129aa795a5d72b4f (patch)
tree5db52a76b76948268ca9f21216f6afc951ec96b9 /crawl-ref/source/stash.h
parentf6ee7314cca8474b59cba7fceb8b3866957b3cb7 (diff)
downloadcrawl-ref-38cb4b1f9f75c3695a14723f129aa795a5d72b4f.tar.gz
crawl-ref-38cb4b1f9f75c3695a14723f129aa795a5d72b4f.zip
[1603670] Altars and portals can now be found by the stash search.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@569 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stash.h')
-rw-r--r--crawl-ref/source/stash.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/crawl-ref/source/stash.h b/crawl-ref/source/stash.h
index 9727102067..58c6d3ce2a 100644
--- a/crawl-ref/source/stash.h
+++ b/crawl-ref/source/stash.h
@@ -159,10 +159,8 @@ private:
struct stash_search_result
{
- // What level is this stash or shop on.
- level_id level;
-
- coord_def pos;
+ // Where's this thingummy of interest.
+ level_pos pos;
// Number of levels the player must cross to reach the level the stash/shop
// is on.
@@ -178,11 +176,11 @@ struct stash_search_result
// First item in stash that matched
std::string match;
- // The stash or shop in question.
+ // The stash or shop in question. Both can be null if this is a feature.
const Stash *stash;
const ShopInfo *shop;
- stash_search_result() : level(), player_distance(0), matches(0),
+ stash_search_result() : pos(), player_distance(0), matches(0),
count(0), match(), stash(NULL), shop(NULL)
{
}