summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/place-info.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-05-01 16:56:36 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-05-01 16:56:36 +0200
commit89d1f2d8a9c4b763cd6d28ca85aa8a6a137e08a6 (patch)
tree905b0ccc7da88cbbe1896aeb93bbf414783fcf94 /crawl-ref/source/place-info.cc
parent9474c05ac21ab046ea774c2dfc1d12edc8d915a0 (diff)
downloadcrawl-ref-89d1f2d8a9c4b763cd6d28ca85aa8a6a137e08a6.tar.gz
crawl-ref-89d1f2d8a9c4b763cd6d28ca85aa8a6a137e08a6.zip
Drop an overzealous assertion for portal levels.
It's still too overzealous, but at least won't ever trigger during normal operation. It'd be nice to be able to delete levels from the outside.
Diffstat (limited to 'crawl-ref/source/place-info.cc')
-rw-r--r--crawl-ref/source/place-info.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/place-info.cc b/crawl-ref/source/place-info.cc
index 32af4ca69d..1e70a2f568 100644
--- a/crawl-ref/source/place-info.cc
+++ b/crawl-ref/source/place-info.cc
@@ -35,11 +35,8 @@ void PlaceInfo::assert_validity() const
|| num_visits > 0 && levels_seen > 0);
if (branch >= 0) // global data is -1
- if (brdepth[branch] > 1
- || brdepth[branch] != -1 && is_connected_branch(branch))
- {
+ if (brdepth[branch] != -1 && is_connected_branch(branch))
ASSERT((int)levels_seen <= brdepth[branch]);
- }
ASSERT(turns_total == (turns_explore + turns_travel + turns_interlevel
+ turns_resting + turns_other));