diff options
Diffstat (limited to 'crawl-ref/source/travel.h')
-rw-r--r-- | crawl-ref/source/travel.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/travel.h b/crawl-ref/source/travel.h index c8bca8e0c6..1490f9df56 100644 --- a/crawl-ref/source/travel.h +++ b/crawl-ref/source/travel.h @@ -169,14 +169,15 @@ public: bool operator == ( const level_id &id ) const { - return branch == id.branch && depth == id.depth - && level_type == id.level_type; + return (level_type == LEVEL_DUNGEON? + branch == id.branch && depth == id.depth + && level_type == id.level_type + : level_type == id.level_type); } bool operator != ( const level_id &id ) const { - return branch != id.branch || depth != id.depth - || level_type != id.level_type; + return !operator == (id); } bool operator <( const level_id &id ) const |