summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.h
diff options
context:
space:
mode:
authorelliptic <hyperelliptical@gmail.com>2012-09-23 07:16:20 -0400
committerelliptic <hyperelliptical@gmail.com>2012-09-23 07:19:03 -0400
commit4fbd7af92c7dd2389277b68ac3571bf1ceb02aaf (patch)
tree502be7babb67e8a87c60eb987efa46615717b7a1 /crawl-ref/source/stash.h
parentf15774da891dacf7d25635bcb5faa3f71d3349f9 (diff)
downloadcrawl-ref-4fbd7af92c7dd2389277b68ac3571bf1ceb02aaf.tar.gz
crawl-ref-4fbd7af92c7dd2389277b68ac3571bf1ceb02aaf.zip
Provide a shortcut for restricting stash searches to the current level.
Prefixing a search with @ restricts it to the level you are on.
Diffstat (limited to 'crawl-ref/source/stash.h')
-rw-r--r--crawl-ref/source/stash.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/stash.h b/crawl-ref/source/stash.h
index 6051999e95..e81698bcee 100644
--- a/crawl-ref/source/stash.h
+++ b/crawl-ref/source/stash.h
@@ -361,7 +361,8 @@ public:
void remove_shop(const level_pos &pos);
private:
void get_matching_stashes(const base_pattern &search,
- vector<stash_search_result> &results) const;
+ vector<stash_search_result> &results,
+ bool curr_lev = false) const;
bool display_search_results(vector<stash_search_result> &results,
bool& sort_by_dist,
bool& show_as_stacks);