summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/externs.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r--crawl-ref/source/externs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h
index 7dc87f11a9..86d93be0d4 100644
--- a/crawl-ref/source/externs.h
+++ b/crawl-ref/source/externs.h
@@ -220,6 +220,11 @@ struct coord_def
{
return origin();
}
+
+ bool equals(const int xi, const int yi) const
+ {
+ return (xi == x && yi == y);
+ }
};
class actor