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/initfile.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/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 8370797f44..710f8e8321 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -684,8 +684,8 @@ void game_options::reset_options() mouse_input = false; - view_max_width = 33; - view_max_height = 21; + view_max_width = std::max(33, VIEW_MIN_WIDTH); + view_max_height = std::max(21, VIEW_MIN_HEIGHT); mlist_min_height = 5; msg_max_height = 10; mlist_allow_alternate_layout = false; |