• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision938e740dd6d8e12c8beb7017aba2a3f271397127 (tree)
Time2019-06-10 23:40:37
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 p_ptr, p_body を player-status.c/h へ移動.

Change Summary

Incremental Difference

--- a/src/externs.h
+++ b/src/externs.h
@@ -47,12 +47,3 @@ extern const byte adj_chr_chm[];
4747
4848 extern bool repair_monsters;
4949 extern bool repair_objects;
50-
51-
52-
53-/*
54- * Software options (set via the '=' command). See "tables.c"
55- */
56-
57-
58-extern player_type *p_ptr;
--- a/src/player-status.c
+++ b/src/player-status.c
@@ -335,6 +335,17 @@ const s32b player_exp_a[PY_MAX_LEVEL] =
335335 5000000L
336336 };
337337
338+/*** Player information ***/
339+
340+/*
341+ * Static player info record
342+ */
343+player_type p_body;
344+
345+/*
346+ * Pointer to the player info
347+ */
348+player_type *p_ptr = &p_body;
338349
339350 /*
340351 * Return alignment title
--- a/src/player-status.h
+++ b/src/player-status.h
@@ -700,6 +700,7 @@ struct player_type
700700 char base_name[32]; /*!< Stripped version of "player_name" */
701701
702702 };
703+extern player_type *p_ptr;
703704
704705 extern concptr your_alignment(void);
705706 extern int weapon_exp_level(int weapon_exp);
--- a/src/variable.c
+++ b/src/variable.c
@@ -16,18 +16,3 @@
1616
1717 bool repair_monsters; /* Hack -- optimize detect monsters */
1818 bool repair_objects; /* Hack -- optimize detect objects */
19-
20-
21-/*** Player information ***/
22-
23-/*
24- * Static player info record
25- */
26-player_type p_body;
27-
28-/*
29- * Pointer to the player info
30- */
31-player_type *p_ptr = &p_body;
32-
33-
Show on old repository browser