• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionaed0a7f631f543b006ad31ce96142e6c7f1e62ac (tree)
Time2019-06-05 23:49:15
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 INVEN_PACK を player-status.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -132,17 +132,6 @@
132132 #define MESSAGE_BUF 655360
133133
134134
135-/*
136- * Maximum number of "normal" pack slots, and the index of the "overflow"
137- * slot, which can hold an item, but only temporarily, since it causes the
138- * pack to "overflow", dropping the "last" item onto the ground. Since this
139- * value is used as an actual slot, it must be less than "INVEN_RARM" (below).
140- * Note that "INVEN_PACK" is probably hard-coded by its use in savefiles, and
141- * by the fact that the screen can only show 23 items plus a one-line prompt.
142- */
143-#define INVEN_PACK 23 /*!< アイテムスロット…所持品(0~) */
144-
145-
146135 /*** Screen Locations ***/
147136
148137 #define VER_INFO_ROW 3 //!< タイトル表記(行)
--- a/src/player-status.h
+++ b/src/player-status.h
@@ -423,10 +423,16 @@ struct player_type
423423 byte feeling; /* Most recent dungeon feeling */
424424 s32b feeling_turn; /* The turn of the last dungeon feeling */
425425
426-
427426 /*
427+ * Maximum number of "normal" pack slots, and the index of the "overflow"
428+ * slot, which can hold an item, but only temporarily, since it causes the
429+ * pack to "overflow", dropping the "last" item onto the ground. Since this
430+ * value is used as an actual slot, it must be less than "INVEN_RARM" (below).
431+ * Note that "INVEN_PACK" is probably hard-coded by its use in savefiles, and
432+ * by the fact that the screen can only show 23 items plus a one-line prompt.
428433 * Indexes used for various "equipment" slots (hard-coded by savefiles, etc).
429434 */
435+ #define INVEN_PACK 23 /*!< アイテムスロット…所持品(0~) */
430436 #define INVEN_RARM 24 /*!< アイテムスロット…右手 */
431437 #define INVEN_LARM 25 /*!< アイテムスロット…左手 */
432438 #define INVEN_BOW 26 /*!< アイテムスロット…射撃 */
@@ -446,7 +452,7 @@ struct player_type
446452 s16b inven_cnt; /* Number of items in inventory */
447453 s16b equip_cnt; /* Number of items in equipment */
448454
449- /*** Temporary fields ***/
455+ /*** Temporary fields ***/
450456
451457 bool playing; /* True if player is playing */
452458 bool leaving; /* True if player is leaving */
Show on old repository browser