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/item_use.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/item_use.cc') 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) -- cgit v1.2.3-54-g00ecf