Match more player_main regalloc/stack/etc issues

This commit is contained in:
LagoLunatic
2025-05-08 23:00:19 -04:00
parent dbadb130a5
commit cbbd4c2dc0
17 changed files with 656 additions and 748 deletions
+13 -3
View File
@@ -273,8 +273,18 @@ public:
/* 0xA4 */ int m_rootGrpIdx;
};
bool cBgW_CheckBGround(f32 ny);
bool cBgW_CheckBRoof(f32 ny);
bool cBgW_CheckBWall(f32 ny);
inline bool cBgW_CheckBGround(f32 ny) {
return ny >= 0.5f;
}
inline bool cBgW_CheckBRoof(f32 ny) {
return ny < (-4.0f / 5.0f);
}
inline bool cBgW_CheckBWall(float y) {
if (!cBgW_CheckBGround(y) && !cBgW_CheckBRoof(y))
return true;
return false;
}
#endif /* C_BG_W_H */