summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/travel.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-04 09:58:31 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-04 09:58:31 +0000
commit95e55a6b22e03054efbdf9af7625832883298a2d (patch)
tree7b2c5f013f0e79017ad55d43f702bc47ac64db82 /crawl-ref/source/travel.h
parent3db6df1d0ca8100864c3638521e89e352f6d0b8c (diff)
downloadcrawl-ref-95e55a6b22e03054efbdf9af7625832883298a2d.tar.gz
crawl-ref-95e55a6b22e03054efbdf9af7625832883298a2d.zip
Warn the player if interlevel travel is going to take them to a level outside the range [src,dest] (rax, doy).
Add ^G as an alias for Escape in yesno and yesnoquit. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6764 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.h')
-rw-r--r--crawl-ref/source/travel.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/travel.h b/crawl-ref/source/travel.h
index 95ede43a98..7785a108ab 100644
--- a/crawl-ref/source/travel.h
+++ b/crawl-ref/source/travel.h
@@ -345,6 +345,14 @@ struct travel_target
p.clear();
entrance_only = false;
}
+ bool operator == (const travel_target &other) const
+ {
+ return p == other.p && entrance_only == other.entrance_only;
+ }
+ bool operator != (const travel_target &other) const
+ {
+ return !operator == (other);
+ }
};
// Tracks items discovered by explore in this turn.