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/it_use2.cc | |
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/it_use2.cc')
-rw-r--r-- | crawl-ref/source/it_use2.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc index dd6aa27168..fd65cb0db2 100644 --- a/crawl-ref/source/it_use2.cc +++ b/crawl-ref/source/it_use2.cc @@ -21,6 +21,7 @@ REVISION("$Rev$"); #include "item_use.h" #include "itemname.h" #include "itemprop.h" +#include "los.h" #include "misc.h" #include "mutation.h" #include "player.h" @@ -472,7 +473,7 @@ bool unwield_item(bool showMsgs) && item.sub_type == MISC_LANTERN_OF_SHADOWS ) { you.current_vision += 2; - setLOSRadius(you.current_vision); + set_los_radius(you.current_vision); you.attribute[ATTR_SHADOWS] = 0; } else if (item.base_type == OBJ_WEAPONS) |