• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionde77daba102a431713e31bf6c248a1bc88825fe8 (tree)
Time2019-06-04 23:19:16
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 SUB_ALIGN_* を monster.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -322,12 +322,6 @@
322322 #define SLF_SECOND 0x0001 /* Called from another save/load function */
323323 #define SLF_NO_KILL 0x0002 /* Don't kill temporal files */
324324
325-
326-/* Sub-alignment flags for neutral monsters */
327-#define SUB_ALIGN_NEUTRAL 0x0000
328-#define SUB_ALIGN_EVIL 0x0001
329-#define SUB_ALIGN_GOOD 0x0002
330-
331325 /*
332326 * Max numbers of macro trigger names
333327 */
--- a/src/monster.h
+++ b/src/monster.h
@@ -19,7 +19,12 @@ struct monster_type
1919 {
2020 MONRACE_IDX r_idx; /* Monster race index 0 = dead. */
2121 MONRACE_IDX ap_r_idx; /* Monster race appearance index */
22- byte sub_align; /* Sub-alignment for a neutral monster */
22+
23+ /* Sub-alignment flags for neutral monsters */
24+ #define SUB_ALIGN_NEUTRAL 0x0000
25+ #define SUB_ALIGN_EVIL 0x0001
26+ #define SUB_ALIGN_GOOD 0x0002
27+ BIT_FLAGS8 sub_align; /* Sub-alignment for a neutral monster */
2328
2429 POSITION fy; /* Y location on map */
2530 POSITION fx; /* X location on map */
Show on old repository browser