OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f5b376
)
[Fix] #41140 たいまつ/ランタンの燃料が残り0でも光る不具合を修正 / Fixed a bug that the torch and lantern...
author
deskull
<deskull@users.sourceforge.jp>
Sat, 16 Jan 2021 01:36:52 +0000
(10:36 +0900)
committer
deskull
<deskull@users.sourceforge.jp>
Sat, 16 Jan 2021 01:36:52 +0000
(10:36 +0900)
* 暗黒光源であるか否かのフラグをTR_DARK_SOURCEに切り替えたときにエンバグしていた。
src/specific-object/torch.c
patch
|
blob
|
history
diff --git
a/src/specific-object/torch.c
b/src/specific-object/torch.c
index
f1936a5
..
d37933b
100644
(file)
--- a/
src/specific-object/torch.c
+++ b/
src/specific-object/torch.c
@@
-84,7
+84,7
@@
void calc_lite_radius(player_type *creature_ptr)
if (o_ptr->name2 == EGO_LITE_SHINE)
creature_ptr->cur_lite++;
- if (has_flag(flgs, TR_DARK_SOURCE)) {
+ if (
!
has_flag(flgs, TR_DARK_SOURCE)) {
if (o_ptr->tval == TV_LITE) {
if ((o_ptr->sval == SV_LITE_TORCH) && !(o_ptr->xtra4 > 0))
continue;