• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision79b303d4c93090e5052a88e517df0b742c076346 (tree)
Time2019-06-05 23:46:38
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 性別定義を player-status.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -80,7 +80,6 @@
8080 */
8181 #define ARENA_DEFEATED_OLD_VER (-(MAX_SHORT)) /*<! 旧バージョンの闘技場敗北定義 */
8282
83-#define MAX_SEXES 2 /*!< 性別の定義最大数 / Maximum number of player "sex" types (see "table.c", etc) */
8483 #define MAX_CLASS 28 /*!< 職業の最大定義数 Maximum number of player "class" types (see "table.c", etc) */
8584 #define MAX_SEIKAKU 13 /*!< 性格の最大定義数 */
8685
@@ -143,11 +142,6 @@
143142 */
144143 #define INVEN_PACK 23 /*!< アイテムスロット…所持品(0~) */
145144
146-/*
147- * Player sex constants (hard-coded by save-files, arrays, etc)
148- */
149-#define SEX_FEMALE 0
150-#define SEX_MALE 1
151145
152146 /*** Screen Locations ***/
153147
--- a/src/player-status.h
+++ b/src/player-status.h
@@ -45,6 +45,13 @@
4545 #define EMPTY_HAND_LARM 0x0001 /* Left hand is empty */
4646 #define EMPTY_HAND_RARM 0x0002 /* Right hand is empty */
4747
48+/*
49+ * Player sex constants (hard-coded by save-files, arrays, etc)
50+ */
51+#define SEX_FEMALE 0
52+#define SEX_MALE 1
53+#define MAX_SEXES 2 /*!< 性別の定義最大数 / Maximum number of player "sex" types (see "table.c", etc) */
54+
4855 extern const concptr stat_names[6];
4956 extern const concptr stat_names_reduced[6];
5057
Show on old repository browser