fixes for taka

This commit is contained in:
Pheenoh
2022-12-21 09:56:34 -07:00
parent 0f533216b9
commit 73873f11bd
3 changed files with 10 additions and 11 deletions
+7 -7
View File
@@ -164,14 +164,14 @@ public:
/* 80146188 */ int chkPassed1(cXyz, int);
/* 801464D8 */ int chkPassed2(cXyz, cXyz*, int, int);
inline cXyz* getPntPos(u16 i_idx) {
cXyz* getPntPos(u16 i_idx) {
u16 tmpidx = i_idx;
dStage_dPnt_c* tmppnt = &mpRoomPath->m_points[tmpidx];
return &tmppnt->m_position;
}
inline int chkClose() {
int chkClose() {
int roomPath = dPath_ChkClose(mpRoomPath);
return roomPath;
}
@@ -181,7 +181,7 @@ public:
return path->m_num;
}
inline u16& getIdx() { return mIdx; }
u16& getIdx() { return mIdx; }
};
class mDoExt_McaMorfSO;
@@ -389,11 +389,11 @@ public:
/* 8014CCE8 */ virtual void changeBtk(int*, int*);
/* 8014A628 */ virtual void setMotionAnm(int, f32, int);
inline bool checkHide() {
bool checkHide() {
return field_0xe25 || (!dComIfGs_wolfeye_effect_check() && field_0xa89);
}
inline s16 checkStep() {
s16 checkStep() {
return mStepNo == 1;
}
@@ -820,8 +820,8 @@ public:
/* 80150DE0 */ int getDstPos(cXyz, cXyz&);
/* 80150EB4 */ void setNextIdxDst(cXyz);
inline u16& getIdx() { return mIdx; };
inline cXyz* getPntPos(); // finish
u16& getIdx() { return mIdx; };
cXyz* getPntPos(); // finish
};
class daNpcF_MoveBgActor_c {
-1
View File
@@ -15,7 +15,6 @@ struct dPath {
/* 0x8 */ dStage_dPnt_c* m_points;
};
// should be move to dlib TU per chn debug
inline int dPath_ChkClose(dPath* i_path) { return (i_path->m_closed & 1); }
dPath* dPath_GetRoomPath(int path_index, int room_no);
+3 -3
View File
@@ -898,7 +898,7 @@ int daNpcT_Path_c::setNextPathInfo(s8 param_0, u8 i_direction) {
mDirection = i_direction;
u16 next_id = mpRoomPath->m_nextID;
if (next_id != 65535) {
if (next_id != 0xFFFF) {
mpRoomPath = dPath_GetRoomPath(next_id,param_0);
if (!mpRoomPath) {
return 0;
@@ -2152,7 +2152,7 @@ int daNpcT_c::ctrlMsgAnm(int* param_0, int* param_1, fopAc_ac_c* param_2, int pa
}
if (talk_partner_conv->isMouthCheck()) {
field_0xd98 &= 0xffffbfff;
field_0xd98 &= ~0x4000;
} else {
field_0xd98 |= 0x4000;
}
@@ -2160,7 +2160,7 @@ int daNpcT_c::ctrlMsgAnm(int* param_0, int* param_1, fopAc_ac_c* param_2, int pa
field_0xdb4 = 0x14;
} else {
if (field_0xd98 & 0x4000) {
field_0xd98 &= 0xffffbfff;
field_0xd98 &= ~0x4000;
}
mSubMtd = (profile_method_class*)-1;
}