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 e7c52e8adb
commit 32e39516d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}