ENAN_GET_8000

This commit is contained in:
angie
2023-10-31 08:42:46 -03:00
parent 954beb6a84
commit 0914861a42
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -3308,7 +3308,7 @@ void EnAn_Init(Actor* thisx, PlayState* play) {
this->actor.params &= (s16)~ENAN_8000;
}
temp_v1 = (this->actor.params & ENAN_8000) >> 0xF;
temp_v1 = ENAN_GET_8000(&this->actor) >> 0xF;
watchedCouplesMaskCs = CHECK_WEEKEVENTREG(WEEKEVENTREG_COUPLES_MASK_CUTSCENE_FINISHED);
if ((!watchedCouplesMaskCs && (temp_v1 == 1)) || (watchedCouplesMaskCs && (temp_v1 == 0))) {
+3 -1
View File
@@ -10,9 +10,11 @@ typedef void (*EnAnActionFunc)(struct EnAn*, PlayState*);
typedef void (*EnAnDialogueFunc)(struct EnAn*, PlayState*);
typedef s32 (*MsgEventFunc)(Actor*, PlayState*);
#define ENAN_GET_PATH_INDEX(thisx) ((thisx)->params & 0xFF)
#define ENAN_8000 0x8000
#define ENAN_GET_PATH_INDEX(thisx) ((thisx)->params & 0xFF)
#define ENAN_GET_8000(thisx) ((thisx)->params & ENAN_8000)
#define ENAN_STATE_8 (1 << 3) // path related
#define ENAN_STATE_REACHED_PATH_END (1 << 4)
#define ENAN_STATE_ENGAGED (1 << 5)