Fix Hess Crash's Next Crash (#480)

This commit is contained in:
inspectredc
2024-05-26 22:29:13 +01:00
committed by GitHub
parent 01901ddf26
commit 07e976e826
+12
View File
@@ -1807,6 +1807,12 @@ void Player_DrawImpl(PlayState* play, void** skeleton, Vec3s* jointTable, s32 dL
gfx = POLY_OPA_DISP;
if (CVarGetInteger("gEnhancements.Fixes.HessCrash", 1)) {
if (eyeIndex >= PLAYER_EYES_MAX) {
eyeIndex = 0;
}
}
if (eyeIndex < 0) {
eyeIndex = sPlayerFaces[face].eyeIndex;
}
@@ -1821,6 +1827,12 @@ void Player_DrawImpl(PlayState* play, void** skeleton, Vec3s* jointTable, s32 dL
gSPSegment(&gfx[0], 0x08, Lib_SegmentedToVirtual(sPlayerEyesTextures[playerForm][eyeIndex]));
if (CVarGetInteger("gEnhancements.Fixes.HessCrash", 1)) {
if (mouthIndex >= PLAYER_MOUTH_MAX) {
mouthIndex = 0;
}
}
if (mouthIndex < 0) {
mouthIndex = sPlayerFaces[face].mouthIndex;
}