revert crash fix (#331)

revert crash fix, causing more serious issues in star road
This commit is contained in:
Isaac0-dev 2023-03-28 08:49:29 +10:00 committed by GitHub
parent b563a96886
commit 6253241e4a
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ void patch_mtx_interpolated(f32 delta) {
// calculate outside of for loop to reduce overhead
// technically this is improper use of mtxf functions, but coop doesn't target N64
bool translateCamSpace = (gMtxTblSize > 0) && sCameraNode && (sCameraNode->matrixPtr != NULL) && (sCameraNode->matrixPtrPrev != NULL);
if (translateCamSpace && gCurrCourseNum != COURSE_CAKE_END) {
if (translateCamSpace) {
mtxf_inverse(camTranfInv.m, *sCameraNode->matrixPtr);
mtxf_inverse(prevCamTranfInv.m, *sCameraNode->matrixPtrPrev);
}