• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

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

Log Message

[Refactor] #37353 プレイヤーの自己分析情報フラグ KNOW_* を player-status.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -255,11 +255,6 @@
255255 #define SPELL_SW 22
256256 #define SPELL_KABE 20
257257
258-#define KNOW_STAT 0x01
259-#define KNOW_HPRATE 0x02
260-
261-
262-
263258 #define DUNGEON_FEAT_PROB_NUM 3
264259
265260 /*
--- a/src/player-status.h
+++ b/src/player-status.h
@@ -386,7 +386,10 @@ struct player_type
386386 bool wizard; /* Player is in wizard mode */
387387
388388 MONSTER_IDX riding; /* Riding on a monster of this index */
389- byte knowledge; /* Knowledge about yourself */
389+
390+ #define KNOW_STAT 0x01
391+ #define KNOW_HPRATE 0x02
392+ BIT_FLAGS8 knowledge; /* Knowledge about yourself */
390393 BIT_FLAGS visit; /* Visited towns */
391394
392395 RACE_IDX start_race; /* Race at birth */
Show on old repository browser