mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
Fix Hess Crash's Next Crash (#480)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user