mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Fixed crash on warp
This commit is contained in:
parent
70f25939b6
commit
c392a161e8
1 changed files with 1 additions and 1 deletions
|
|
@ -279,7 +279,7 @@ void patch_mtx_interpolated(f32 delta) {
|
||||||
|
|
||||||
// calculate outside of for loop to reduce overhead
|
// calculate outside of for loop to reduce overhead
|
||||||
// technically this is improper use of mtxf functions, but coop doesn't target N64
|
// technically this is improper use of mtxf functions, but coop doesn't target N64
|
||||||
bool translateCamSpace = (sCameraNode->matrixPtr != NULL) && (sCameraNode->matrixPtrPrev != NULL);
|
bool translateCamSpace = (gMtxTblSize > 0) && sCameraNode && (sCameraNode->matrixPtr != NULL) && (sCameraNode->matrixPtrPrev != NULL);
|
||||||
if (translateCamSpace) {
|
if (translateCamSpace) {
|
||||||
mtxf_inverse(camTranfInv.m, *sCameraNode->matrixPtr);
|
mtxf_inverse(camTranfInv.m, *sCameraNode->matrixPtr);
|
||||||
mtxf_inverse(prevCamTranfInv.m, *sCameraNode->matrixPtrPrev);
|
mtxf_inverse(prevCamTranfInv.m, *sCameraNode->matrixPtrPrev);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue