X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fview-mainwindow.c;h=3fb1173d7dde38b7ace30059e8815cdf23f25271;hb=29bd00cca85fbccd143dd7b7c8263fde99810802;hp=ca554ae181f10bc38177ff01f24631633ee2575e;hpb=6f0d6587ab5993f3f0956f8be99be86a596efe0b;p=hengband%2Fhengband.git diff --git a/src/view-mainwindow.c b/src/view-mainwindow.c index ca554ae18..3fb1173d7 100644 --- a/src/view-mainwindow.c +++ b/src/view-mainwindow.c @@ -1239,9 +1239,10 @@ static void print_speed(player_type *player_ptr) /*! * @brief プレイヤーの呪文学習可能状態を表示する + * @param player_ptr プレーヤーへの参照ポインタ * @return なし */ -static void print_study(void) +static void print_study(player_type *player_ptr) { TERM_LEN wid, hgt, row_study, col_study; @@ -1249,7 +1250,7 @@ static void print_study(void) col_study = wid + COL_STUDY; row_study = hgt + ROW_STUDY; - if (p_ptr->new_spells) + if (player_ptr->new_spells) { put_str(_("学習", "Stud"), row_study, col_study); } @@ -1262,9 +1263,10 @@ static void print_study(void) /*! * @brief プレイヤーのものまね可能状態を表示する + * @param player_ptr プレーヤーへの参照ポインタ * @return なし */ -static void print_imitation(void) +static void print_imitation(player_type *player_ptr) { TERM_LEN wid, hgt, row_study, col_study; @@ -1272,12 +1274,12 @@ static void print_imitation(void) col_study = wid + COL_STUDY; row_study = hgt + ROW_STUDY; - if (p_ptr->pclass == CLASS_IMITATOR) + if (player_ptr->pclass == CLASS_IMITATOR) { - if (p_ptr->mane_num) + if (player_ptr->mane_num) { TERM_COLOR attr; - if (p_ptr->new_mane) attr = TERM_L_RED; + if (player_ptr->new_mane) attr = TERM_L_RED; else attr = TERM_WHITE; c_put_str(attr, _("まね", "Imit"), row_study, col_study); } @@ -1358,7 +1360,6 @@ static void print_stun(player_type *creature_ptr) } - /*! * @brief モンスターの体力ゲージを表示する * @param riding TRUEならば騎乗中のモンスターの体力、FALSEならターゲットモンスターの体力を表示する。表示位置は固定。 @@ -1557,8 +1558,8 @@ static void print_frame_extra(player_type *player_ptr) print_hunger(player_ptr); print_state(player_ptr); print_speed(player_ptr); - print_study(); - print_imitation(); + print_study(player_ptr); + print_imitation(player_ptr); print_status(player_ptr); } @@ -2256,16 +2257,17 @@ void redraw_stuff(player_type *creature_ptr) if (creature_ptr->redraw & (PR_IMITATION)) { creature_ptr->redraw &= ~(PR_IMITATION); - print_imitation(); + print_imitation(creature_ptr); } } else if (creature_ptr->redraw & (PR_STUDY)) { creature_ptr->redraw &= ~(PR_STUDY); - print_study(); + print_study(creature_ptr); } } + /*! * @brief player_ptr->window のフラグに応じた更新をまとめて行う / Handle "player_ptr->window" * @param player_ptr プレーヤーへの参照ポインタ