summaryrefslogtreecommitdiff
path: root/include/d
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-11-23 18:23:44 -0500
committerGitHub <noreply@github.com>2025-11-23 15:23:44 -0800
commit8d53f6dd591abb21e9474a5ad85ee19eb58f2e50 (patch)
treefa0119425e15c8be3f7833b6b4379b8eb50412cc /include/d
parenteaf980174f97ca1ee08df8c93a4459fba9527bad (diff)
Fix more nonmatchings (#2850)
* Fix GetPolyIndex and GetBgIndex, fixing a couple regallocs * Match daNpcCd2_c::checkFearSituation and daNpcCd2_c::getAnmP * Match daAlink_c::jointControll * Clean up float class checks * Move float constants to global.h
Diffstat (limited to 'include/d')
-rw-r--r--include/d/actor/d_a_kago.h31
-rw-r--r--include/d/d_bg_pc.h4
-rw-r--r--include/d/d_bg_s_cap_poly.h3
3 files changed, 4 insertions, 34 deletions
diff --git a/include/d/actor/d_a_kago.h b/include/d/actor/d_a_kago.h
index de886797ca..eae761af12 100644
--- a/include/d/actor/d_a_kago.h
+++ b/include/d/actor/d_a_kago.h
@@ -228,35 +228,4 @@ private:
STATIC_ASSERT(sizeof(daKago_c) == 0xBA4);
-class daKago_HIO_c : public JORReflexible {
-public:
- /* 808495AC */ daKago_HIO_c();
- /* 80854A4C */ virtual ~daKago_HIO_c() {}
-
- void genMessage(JORMContext* ctx);
-
- /* 0x04 */ s8 mChild;
- /* 0x08 */ f32 mRevoconUpDown;
- /* 0x0C */ f32 mRevoconUpDownMax;
- /* 0x10 */ f32 mRevoconLeftRight;
- /* 0x14 */ f32 mRevoconLeftRightMax;
- /* 0x18 */ f32 mBasicSize;
- /* 0x1C */ f32 mFlightSpeed;
- /* 0x20 */ f32 mFlightGroundAltitude;
- /* 0x24 */ f32 mFlightCeilingAltitude;
- /* 0x28 */ f32 mShadowDensity;
- /* 0x2C */ f32 mDescentRateIncrement;
- /* 0x30 */ f32 mAscentRateDecel;
- /* 0x34 */ f32 mDashTime;
- /* 0x38 */ f32 mDashTimeMultiplier;
- /* 0x3C */ f32 mWallHitInvulnTime;
- /* 0x40 */ f32 mDashCooldownTime;
- /* 0x44 */ f32 mZOffset;
- /* 0x48 */ f32 mZOffsetHori;
- /* 0x4C */ u8 mAngleTrackingMode;
- /* 0x50 */ f32 mYOffsetFromWaterSurface;
- /* 0x54 */ f32 mWaterSplashTime;
- /* 0x58 */ f32 mSplashGenTimeDuringDash;
-};
-
#endif /* D_A_KAGO_H */
diff --git a/include/d/d_bg_pc.h b/include/d/d_bg_pc.h
index 0c696fe580..bbf58c21ca 100644
--- a/include/d/d_bg_pc.h
+++ b/include/d/d_bg_pc.h
@@ -30,13 +30,13 @@ public:
u32 getHSStick() const { return BGPC_CHECK_BIT(m_code.code0, 18); }
u32 getBoomerangThrough() const { return BGPC_CHECK_BIT(m_code.code0, 19); }
u32 getRopeThrough() const { return BGPC_CHECK_BIT(m_code.code0, 20); }
- u32 getHorseNoEntry() const { return BGPC_CHECK_BIT(m_code.code0, 21) != 0; }
+ u32 getHorseNoEntry() const { return BGPC_CHECK_BIT(m_code.code0, 21); }
u32 getShdwThrough() const { return BGPC_CHECK_BIT(m_code.code0, 22); }
u32 getBombThrough() const { return BGPC_CHECK_BIT(m_code.code0, 23); }
s32 getSpl() const { return BGPC_GET_BITS(m_code.code0, 24, 4); }
u32 getMagnet() const { return BGPC_GET_BITS(m_code.code0, 28, 2); }
u32 getUnderwaterRoof() const { return BGPC_CHECK_BIT(m_code.code0, 30); }
- u32 getMonkeyBars() const { return BGPC_CHECK_BIT(m_code.code0, 31) != 0; }
+ u32 getMonkeyBars() const { return (m_code.code0 >> 31) & 1; }
s32 getLinkNo() const { return BGPC_GET_BITS(m_code.code1, 0, 8); }
s32 getWallCode() const { return BGPC_GET_BITS(m_code.code1, 8, 4); }
diff --git a/include/d/d_bg_s_cap_poly.h b/include/d/d_bg_s_cap_poly.h
index 37dc20a85c..0cda04c739 100644
--- a/include/d/d_bg_s_cap_poly.h
+++ b/include/d/d_bg_s_cap_poly.h
@@ -2,6 +2,7 @@
#define D_BG_D_BG_S_CAPT_POLY_H
#include "d/d_bg_s_chk.h"
+#include "SSystem/SComponent/c_m3d_g_aab.h"
struct dBgS_CaptPoly;
@@ -15,4 +16,4 @@ public:
/* 0x48 */ CaptPolyCallback m_callback;
};
-#endif \ No newline at end of file
+#endif