From 050ad8a6b955cb29b4eb337ba07399da1fb6c3b0 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sat, 17 Oct 2009 16:42:31 +0200 Subject: Make default LOS configurable. Setting LOS_RADIUS in defines.h now works. Fixed a couple of things to allow this, including an apparent off-by-one error in crawl_view -- not quite sure this doesn't break anything. --- crawl-ref/source/directn.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/directn.h') diff --git a/crawl-ref/source/directn.h b/crawl-ref/source/directn.h index 84aad0b116..d7bbd68656 100644 --- a/crawl-ref/source/directn.h +++ b/crawl-ref/source/directn.h @@ -238,12 +238,12 @@ inline coord_def grid2view(const coord_def &pos) inline coord_def view2show(const coord_def &pos) { - return (pos - crawl_view.vlos1 + coord_def(1, 1)); + return (pos - crawl_view.vlos1); } inline coord_def show2view(const coord_def &pos) { - return (pos + crawl_view.vlos1 - coord_def(1, 1)); + return (pos + crawl_view.vlos1); } inline coord_def grid2show(const coord_def &pos) -- cgit v1.2.3-54-g00ecf