• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisionb0d3f85ea123386c8b215fd4bb5ea56855483172 (tree)
Time2019-07-08 12:17:04
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #38997 get_player_race() に player_type * 引数を追加.

Change Summary

Incremental Difference

--- a/src/birth.c
+++ b/src/birth.c
@@ -2483,7 +2483,7 @@ void player_outfit(player_type *creature_ptr)
24832483 * @brief プレイヤーの種族選択を行う / Player race
24842484 * @return なし
24852485 */
2486-static bool get_player_race(void)
2486+static bool get_player_race(player_type *creature_ptr)
24872487 {
24882488 int k, n, cs, os;
24892489 concptr str;
@@ -2518,7 +2518,7 @@ static bool get_player_race(void)
25182518
25192519 /* Choose */
25202520 k = -1;
2521- cs = p_ptr->prace;
2521+ cs = creature_ptr->prace;
25222522 os = MAX_RACES;
25232523 while (1)
25242524 {
@@ -2626,9 +2626,9 @@ static bool get_player_race(void)
26262626 }
26272627
26282628 /* Set race */
2629- p_ptr->prace = (byte_hack)k;
2629+ creature_ptr->prace = (byte_hack)k;
26302630
2631- rp_ptr = &race_info[p_ptr->prace];
2631+ rp_ptr = &race_info[creature_ptr->prace];
26322632
26332633 /* Display */
26342634 c_put_str(TERM_L_BLUE, rp_ptr->title, 4, 15);
@@ -4020,7 +4020,7 @@ static bool player_birth_aux(player_type *creature_ptr)
40204020 char temp[80*10];
40214021 concptr t;
40224022
4023- if (!get_player_race()) return FALSE;
4023+ if (!get_player_race(creature_ptr)) return FALSE;
40244024
40254025 clear_from(10);
40264026
Show on old repository browser