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
/
cmd2.c
diff --git
a/src/cmd2.c
b/src/cmd2.c
index
054fb55
..
30c4406
100644
(file)
--- a/
src/cmd2.c
+++ b/
src/cmd2.c
@@
-59,7
+59,7
@@
bool confirm_leave_level(bool down_stair)
*/
bool cmd_limit_cast(player_type *creature_ptr)
{
*/
bool cmd_limit_cast(player_type *creature_ptr)
{
- if (dun_level && (d_info[dungeon_
type
].flags1 & DF1_NO_MAGIC))
+ if (dun_level && (d_info[dungeon_
idx
].flags1 & DF1_NO_MAGIC))
{
msg_print(_("ダンジョンが魔法を吸収した!", "The dungeon absorbs all attempted magic!"));
msg_print(NULL);
{
msg_print(_("ダンジョンが魔法を吸収した!", "The dungeon absorbs all attempted magic!"));
msg_print(NULL);
@@
-240,7
+240,7
@@
void do_cmd_go_up(void)
}
/* Get out from current dungeon */
}
/* Get out from current dungeon */
- if (dun_level - up_num < d_info[dungeon_
type
].mindepth)
+ if (dun_level - up_num < d_info[dungeon_
idx
].mindepth)
up_num = dun_level;
}
if (record_stair) do_cmd_write_nikki(NIKKI_STAIR, 0-up_num, _("階段を上った", "climbed up the stairs to"));
up_num = dun_level;
}
if (record_stair) do_cmd_write_nikki(NIKKI_STAIR, 0-up_num, _("階段を上った", "climbed up the stairs to"));
@@
-355,7
+355,7
@@
void do_cmd_go_down(void)
/* Save old player position */
p_ptr->oldpx = p_ptr->x;
p_ptr->oldpy = p_ptr->y;
/* Save old player position */
p_ptr->oldpx = p_ptr->x;
p_ptr->oldpy = p_ptr->y;
- dungeon_
type
= target_dungeon;
+ dungeon_
idx
= target_dungeon;
/*
* Clear all saved floors
/*
* Clear all saved floors
@@
-376,7
+376,7
@@
void do_cmd_go_down(void)
{
/* Enter the dungeon just now */
p_ptr->enter_dungeon = TRUE;
{
/* Enter the dungeon just now */
p_ptr->enter_dungeon = TRUE;
- down_num = d_info[dungeon_
type
].mindepth;
+ down_num = d_info[dungeon_
idx
].mindepth;
}
if (record_stair)
}
if (record_stair)
@@
-394,7
+394,7
@@
void do_cmd_go_down(void)
/* Success */
if (target_dungeon)
{
/* Success */
if (target_dungeon)
{
- msg_format(_("%sへ入った。", "You entered %s."), d_text + d_info[dungeon_
type
].text);
+ msg_format(_("%sへ入った。", "You entered %s."), d_text + d_info[dungeon_
idx
].text);
}
else
{
}
else
{