diff options
-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 109e92c403..c160970da4 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -185,6 +185,11 @@ struct coord_def return (copy -= other); } + coord_def operator -() const + { + return (coord_def(0, 0) - *this); + } + coord_def operator - (int other) const { coord_def copy = *this; |