summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-10-09 17:47:31 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-10-09 17:57:38 +0200
commite7a410cc434b53dc0e57774a1e0f2954a7999edf (patch)
treee32d085791f5f769ffce86e7cd7af89a40c06437 /crawl-ref/source/stash.h
parent3aa9bb7204140929e5f2381f11e95b034137cf71 (diff)
downloadcrawl-ref-e7a410cc434b53dc0e57774a1e0f2954a7999edf.tar.gz
crawl-ref-e7a410cc434b53dc0e57774a1e0f2954a7999edf.zip
Remove unused level flags, forbid exclusions in Abyss and Lab.
Old unmappable levels are gone for good, and good riddance. Thus, player_in_mappable_area() is obsolete; I removed it and stolen the name for "Lab or Abyss" check, done inconsistently in several places. Also, exclusions there were problematic -- I removed them for now, please change this back if you can fix them.
Diffstat (limited to 'crawl-ref/source/stash.h')
-rw-r--r--crawl-ref/source/stash.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/stash.h b/crawl-ref/source/stash.h
index 49b7093fba..203e55746c 100644
--- a/crawl-ref/source/stash.h
+++ b/crawl-ref/source/stash.h
@@ -312,8 +312,7 @@ class StashTracker
public:
static bool is_level_untrackable()
{
- return you.level_type == LEVEL_LABYRINTH
- || you.level_type == LEVEL_ABYSS;
+ return !player_in_mappable_area();
}
StashTracker() : levels(), last_corpse_update(0)