summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-17 16:42:31 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-17 16:45:18 +0200
commit050ad8a6b955cb29b4eb337ba07399da1fb6c3b0 (patch)
tree890a9584a5d29cc67e5e3e154ca0325889cd762d /crawl-ref/source/item_use.cc
parent47332d4cd5e3297f9c80cac5e6cc83790920cf28 (diff)
downloadcrawl-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/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index ab63b492ae..94795dba5d 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -36,6 +36,7 @@ REVISION("$Rev$");
#include "items.h"
#include "itemname.h"
#include "itemprop.h"
+#include "los.h"
#include "macro.h"
#include "message.h"
#include "misc.h"
@@ -459,7 +460,7 @@ void wield_effects(int item_wield_2, bool showMsgs)
mpr("The area is filled with flickering shadows.");
you.current_vision -= 2;
- setLOSRadius(you.current_vision);
+ set_los_radius(you.current_vision);
you.attribute[ATTR_SHADOWS] = 1;
}
else if (item.sub_type == MISC_HORN_OF_GERYON)