diff options
Diffstat (limited to 'crawl-ref/source/direct.cc')
-rw-r--r-- | crawl-ref/source/direct.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/direct.cc b/crawl-ref/source/direct.cc index 9b6407c8be..59429c4349 100644 --- a/crawl-ref/source/direct.cc +++ b/crawl-ref/source/direct.cc @@ -831,6 +831,11 @@ bool in_vlos(int x, int y) && (env.show[x - LOS_SX][y] || (x == VIEW_CX && y == VIEW_CY)); } +bool in_vlos(const coord_def &pos) +{ + return (in_vlos(pos.x, pos.y)); +} + bool in_los(int x, int y) { const int tx = x + VIEW_CX - you.x_pos, |