diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-17 16:42:31 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-17 16:45:18 +0200 |
commit | 050ad8a6b955cb29b4eb337ba07399da1fb6c3b0 (patch) | |
tree | 890a9584a5d29cc67e5e3e154ca0325889cd762d /crawl-ref/source/directn.h | |
parent | 47332d4cd5e3297f9c80cac5e6cc83790920cf28 (diff) | |
download | crawl-ref-050ad8a6b955cb29b4eb337ba07399da1fb6c3b0.tar.gz crawl-ref-050ad8a6b955cb29b4eb337ba07399da1fb6c3b0.zip |
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.
Diffstat (limited to 'crawl-ref/source/directn.h')
-rw-r--r-- | crawl-ref/source/directn.h | 4 |
1 files changed, 2 insertions, 2 deletions
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) |