change gy.youmonst
Add a pointer to struct you, and put umonst there. Eliminate the youmonst struct in gy. The naming convention better matches the other u related fields, and u.umonst has the same level of indirection as other monst pointers. The u.umonst pointer is cleared prior to saving the parent u (struct you), and u.umonst is reestablished upon restore. Invalidates existing saves and bones due to the presence of the added pointer field in struct you.
This commit is contained in:
+2
-2
@@ -67,8 +67,8 @@ enum m_ap_types {
|
||||
|
||||
#define M_AP_TYPMASK 0x7
|
||||
#define M_AP_F_DKNOWN 0x8
|
||||
#define U_AP_TYPE (gy.youmonst.m_ap_type & M_AP_TYPMASK)
|
||||
#define U_AP_FLAG (gy.youmonst.m_ap_type & ~M_AP_TYPMASK)
|
||||
#define U_AP_TYPE (u.umonst->m_ap_type & M_AP_TYPMASK)
|
||||
#define U_AP_FLAG (u.umonst->m_ap_type & ~M_AP_TYPMASK)
|
||||
#define M_AP_TYPE(m) ((m)->m_ap_type & M_AP_TYPMASK)
|
||||
#define M_AP_FLAG(m) ((m)->m_ap_type & ~M_AP_TYPMASK)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user