From f47c3d7d4b921bda44f5fdea568265271cf3c15e Mon Sep 17 00:00:00 2001 From: mogami Date: Tue, 30 Apr 2002 08:41:36 +0000 Subject: [PATCH] =?utf8?q?=E5=85=89=E6=BA=90=E3=81=AE=E5=8D=8A=E5=BE=84?= =?utf8?q?=E3=81=AE=E6=9C=80=E5=A4=A7=E5=80=A4=E3=82=9211=E3=81=AB?= =?utf8?q?=E6=8B=A1=E5=BC=B5=E3=80=82=E9=85=8D=E5=88=97=E6=BA=A2=E3=82=8C?= =?utf8?q?=E3=81=8C=E3=81=AA=E3=81=84=E4=BA=8B=E3=82=92define.h=E3=81=AE?= =?utf8?q?=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E3=81=AB=E8=A8=98=E8=BF=B0?= =?utf8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/cave.c | 5 +---- src/defines.h | 4 ++-- src/xtra1.c | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/cave.c b/src/cave.c index d0259b88c..664d1625f 100644 --- a/src/cave.c +++ b/src/cave.c @@ -3060,9 +3060,6 @@ void forget_lite(void) * list the "nearby" grids before the more "distant" ones in the * array of torch-lit grids. * - * We will correctly handle "large" radius lites, though currently, - * it is impossible for the player to have more than radius 3 lite. - * * We assume that "radius zero" lite is in fact no lite at all. * * Torch Lantern Artifacts @@ -3180,7 +3177,7 @@ void update_lite(void) int d; /* Paranoia -- see "LITE_MAX" */ - if (p > 5) p = 5; + if (p > 11) p = 11; /* South-East of the player */ if (cave_floor_bold(py+1, px+1)) diff --git a/src/defines.h b/src/defines.h index 0d6054ded..7ef28ee00 100644 --- a/src/defines.h +++ b/src/defines.h @@ -391,8 +391,8 @@ /* * Maximum size of the "lite" array (see "cave.c") - * Note that the "lite radius" will NEVER exceed 5, and even if the "lite" - * was rectangular, we would never require more than 128 entries in the array. + * Note that the "lite radius" will NEVER exceed 11, and we would + * never require more than 369 entries in the array for circular "lite". */ #define LITE_MAX 512 diff --git a/src/xtra1.c b/src/xtra1.c index d212ba16a..fc2a8fa6c 100644 --- a/src/xtra1.c +++ b/src/xtra1.c @@ -3115,7 +3115,7 @@ static void calc_torch(void) /* see cave.c:update_lite() and defines.h:LITE_MAX */ if (d_info[dungeon_type].flags1 & DF1_DARKNESS && p_ptr->cur_lite > 1) p_ptr->cur_lite = 1; - if (p_ptr->cur_lite > 5) p_ptr->cur_lite = 5; + if (p_ptr->cur_lite > 11) p_ptr->cur_lite = 11; if (p_ptr->cur_lite < 0) p_ptr->cur_lite = 0; /* check if the player doesn't have a lite source, */ -- 2.11.0