• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionca1b9158f7b256befedd0104f00500b32b704668 (tree)
Time2019-07-08 12:40:06
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/birth.c
+++ b/src/birth.c
@@ -1588,7 +1588,7 @@ static void get_money(player_type *creature_ptr)
15881588 * @details See 'display_player()' for screen layout constraints.
15891589 * @return なし
15901590 */
1591-static void birth_put_stats(void)
1591+static void birth_put_stats(player_type *creature_ptr)
15921592 {
15931593 int i, j, m, p;
15941594 int col;
@@ -1606,7 +1606,7 @@ static void birth_put_stats(void)
16061606 j = rp_ptr->r_adj[i] + cp_ptr->c_adj[i] + ap_ptr->a_adj[i];
16071607
16081608 /* Obtain the current stat */
1609- m = adjust_stat(p_ptr->stat_max[i], j);
1609+ m = adjust_stat(creature_ptr->stat_max[i], j);
16101610
16111611 /* Put the stat */
16121612 cnv_stat(m, buf);
@@ -4308,7 +4308,7 @@ static bool player_birth_aux(player_type *creature_ptr)
43084308 if (flag)
43094309 {
43104310 /* Dump data */
4311- birth_put_stats();
4311+ birth_put_stats(creature_ptr);
43124312
43134313 /* Dump round */
43144314 put_str(format("%10ld", auto_round), 10, col+20);
Show on old repository browser