OSDN Git Service
(root)
/
hengband
/
hengband.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Refactor] #37353 グローバル変数 dungeon_type を他の慣例に従い dungeon_idx に改名。 / Rename dungeon_typ...
[hengband/hengband.git]
/
src
/
mspells1.c
diff --git
a/src/mspells1.c
b/src/mspells1.c
index
e027d50
..
ae1f9ad
100644
(file)
--- a/
src/mspells1.c
+++ b/
src/mspells1.c
@@
-1371,7
+1371,7
@@
bool make_attack_spell(MONSTER_IDX m_idx)
/* Check "projectable" */
bool direct;
/* Check "projectable" */
bool direct;
- bool in_no_magic_dungeon = (d_info[dungeon_
type
].flags1 & DF1_NO_MAGIC) && dun_level
+ bool in_no_magic_dungeon = (d_info[dungeon_
idx
].flags1 & DF1_NO_MAGIC) && dun_level
&& (!p_ptr->inside_quest || is_fixed_quest_idx(p_ptr->inside_quest));
bool can_use_lite_area = FALSE;
&& (!p_ptr->inside_quest || is_fixed_quest_idx(p_ptr->inside_quest));
bool can_use_lite_area = FALSE;
@@
-1529,7
+1529,7
@@
bool make_attack_spell(MONSTER_IDX m_idx)
if (!(r_ptr->flags2 & RF2_STUPID))
{
if (!(r_ptr->flags2 & RF2_STUPID))
{
- if (d_info[dungeon_
type
].flags1 & DF1_DARKNESS) f6 &= ~(RF6_DARKNESS);
+ if (d_info[dungeon_
idx
].flags1 & DF1_DARKNESS) f6 &= ~(RF6_DARKNESS);
else if ((p_ptr->pclass == CLASS_NINJA) && !can_use_lite_area) f6 &= ~(RF6_DARKNESS);
}
}
else if ((p_ptr->pclass == CLASS_NINJA) && !can_use_lite_area) f6 &= ~(RF6_DARKNESS);
}
}