summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/newgame.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/newgame.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/newgame.cc')
-rw-r--r--crawl-ref/source/newgame.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc
index 258a013871..eb00c2d95a 100644
--- a/crawl-ref/source/newgame.cc
+++ b/crawl-ref/source/newgame.cc
@@ -1297,8 +1297,8 @@ game_start:
// Before we get into the inventory init, set light radius based
// on species vision. Currently, all species see out to 8 squares.
- you.normal_vision = 8;
- you.current_vision = 8;
+ you.normal_vision = LOS_RADIUS;
+ you.current_vision = LOS_RADIUS;
_jobs_stat_init( you.char_class );
_give_last_paycheck( you.char_class );