diff options
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r-- | crawl-ref/source/externs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index c2a0ec73be..3b5157309d 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -118,6 +118,11 @@ struct coord_def return (x < other.x) || (x == other.x && y < other.y); } + bool operator > (const coord_def &other) const + { + return (x > other.x) || (x == other.x && y > other.y); + } + const coord_def &operator += (const coord_def &other) { x += other.x; |