Fix Various Player Anim Checks (#89)

* Fix Player Anim Checks

* strcmp everything

* missed a couple

* use macro

* update comment
This commit is contained in:
inspectredc
2024-05-22 09:04:58 -05:00
committed by Garrett Cox
parent 4e50afb407
commit 745e554d3a
3 changed files with 115 additions and 113 deletions
+2
View File
@@ -113,6 +113,8 @@
// Compute 0x0E segment value as compile time constant for 32bit and 64bit
#define D_0E000000_TO_SEGMENTED(member) ((0x0E000000 + offsetof(GfxMasterList, member)) | 1)
#define D_0F000000_TO_SEGMENTED (0x0F000000 | 1)
// Used to compare animations. The statically linked global animations can end up with different pointer addresses if an animation gets set from one file and then compared against the static animation in another
#define BEN_ANIM_EQUAL(anim1, anim2) ((anim1 == NULL) ? ((anim2 == NULL) ? true : false) : ((anim2 == NULL) ? false : strcmp(anim1, anim2) == 0))
// #endregion
#endif // MACROS_H