From 4a2d1b4d0e4d95330fecd70d555285b0c339b877 Mon Sep 17 00:00:00 2001 From: deskull Date: Sat, 6 Jul 2019 11:36:23 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#38997=20init=5Fturn()=20=E3=81=AB?= =?utf8?q?=20player=5Ftype=20*=20=E5=BC=95=E6=95=B0=E3=82=92=E8=BF=BD?= =?utf8?q?=E5=8A=A0=EF=BC=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/birth.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/birth.c b/src/birth.c index bfb62d381..b5b14c153 100644 --- a/src/birth.c +++ b/src/birth.c @@ -1926,12 +1926,12 @@ static void init_dungeon_quests(player_type *creature_ptr) * @details アンデッド系種族は開始時刻を夜からにする。 * @return なし */ -static void init_turn(void) +static void init_turn(player_type *creature_ptr) { - if ((p_ptr->prace == RACE_VAMPIRE) || - (p_ptr->prace == RACE_SKELETON) || - (p_ptr->prace == RACE_ZOMBIE) || - (p_ptr->prace == RACE_SPECTRE)) + if ((creature_ptr->prace == RACE_VAMPIRE) || + (creature_ptr->prace == RACE_SKELETON) || + (creature_ptr->prace == RACE_ZOMBIE) || + (creature_ptr->prace == RACE_SPECTRE)) { /* Undead start just after midnight */ current_world_ptr->game_turn = (TURNS_PER_TICK*3 * TOWN_DAWN) / 4 + 1; @@ -4158,7 +4158,7 @@ static bool player_birth_aux(player_type *creature_ptr) clear_from(10); /* Reset current_world_ptr->game_turn; before auto-roll and after choosing race */ - init_turn(); + init_turn(p_ptr); /*** Generate ***/ @@ -4530,7 +4530,7 @@ static bool ask_quick_start(player_type *creature_ptr) } load_prev_data(creature_ptr, FALSE); - init_turn(); + init_turn(p_ptr); init_dungeon_quests(creature_ptr); sp_ptr = &sex_info[creature_ptr->psex]; -- 2.11.0