diff options
Diffstat (limited to 'crawl-ref/source/directn.h')
-rw-r--r-- | crawl-ref/source/directn.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/directn.h b/crawl-ref/source/directn.h index 3d95e9f8d7..1759496612 100644 --- a/crawl-ref/source/directn.h +++ b/crawl-ref/source/directn.h @@ -74,6 +74,11 @@ public: return viewp + viewhalfsz; } + coord_def glosc() const + { + return (glos1 + glos2) / 2; + } + bool in_grid_los(const coord_def &c) const { return (c.x >= glos1.x && c.x <= glos2.x |