From: iks Date: Mon, 10 Jun 2013 16:02:23 +0000 (+0000) Subject: Fixed a bug of calculation of total lites radius by inventory objects X-Git-Tag: v2.1.3~20 X-Git-Url: http://git.osdn.net/view?p=hengband%2Fhengband.git;a=commitdiff_plain;h=0d42fcbb73748ff0e3a8d36c2b958aadd1eb2d78 Fixed a bug of calculation of total lites radius by inventory objects --- diff --git a/src/xtra1.c b/src/xtra1.c index 201a89aac..28f4bb8ee 100644 --- a/src/xtra1.c +++ b/src/xtra1.c @@ -3035,8 +3035,11 @@ static void calc_torch(void) /* Need Fuels */ if (o_ptr->name2 != EGO_LITE_DARKNESS) { - if((o_ptr->sval == SV_LITE_TORCH) && !(o_ptr->xtra4 > 0)) break; - if((o_ptr->sval == SV_LITE_LANTERN) && !(o_ptr->xtra4 > 0)) break; + if (o_ptr->tval == TV_LITE) + { + if((o_ptr->sval == SV_LITE_TORCH) && !(o_ptr->xtra4 > 0)) continue; + if((o_ptr->sval == SV_LITE_LANTERN) && !(o_ptr->xtra4 > 0)) continue; + } } /* Extract the flags */