diff options
Diffstat (limited to 'crawl-ref/source/travel.h')
-rw-r--r-- | crawl-ref/source/travel.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/travel.h b/crawl-ref/source/travel.h index 752c285044..cd34eda39d 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. |