From 5a1514c568bff784148bc9ed49a231ca3447252c Mon Sep 17 00:00:00 2001 From: Niko Date: Fri, 12 Apr 2024 17:01:47 -0700 Subject: [PATCH] 60fps progress --- decompile/General/Vehicle/VehFrameProc_Spinning.c | 4 ++-- decompile/General/Vehicle/VehPhysProc_SpinStop_FuncPtrs.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/decompile/General/Vehicle/VehFrameProc_Spinning.c b/decompile/General/Vehicle/VehFrameProc_Spinning.c index eb2ac78c5..84db94977 100644 --- a/decompile/General/Vehicle/VehFrameProc_Spinning.c +++ b/decompile/General/Vehicle/VehFrameProc_Spinning.c @@ -21,7 +21,7 @@ void DECOMP_VehFrameProc_Spinning(struct Thread *t, struct Driver *d) return; // if animation is not zero - if (animIndex) + if (animIndex != 0) { startFrame = VehFrameInst_GetStartFrame(animIndex, numFrames); @@ -47,7 +47,7 @@ void DECOMP_VehFrameProc_Spinning(struct Thread *t, struct Driver *d) inst->animIndex = 0; } - if (animIndex != 0) + if (inst->animIndex != 0) goto ANIM_SPIN; } diff --git a/decompile/General/Vehicle/VehPhysProc_SpinStop_FuncPtrs.c b/decompile/General/Vehicle/VehPhysProc_SpinStop_FuncPtrs.c index ff39f6b28..e330213c5 100644 --- a/decompile/General/Vehicle/VehPhysProc_SpinStop_FuncPtrs.c +++ b/decompile/General/Vehicle/VehPhysProc_SpinStop_FuncPtrs.c @@ -11,7 +11,7 @@ void DECOMP_VehPhysProc_SpinStop_Animate(struct Thread* t, struct Driver* d) #if 0 numFrames = VehFrameInst_GetNumAnimFrames(inst, inst->animIndex); #else - numFrames = 21; + numFrames = FPS_DOUBLE(20)+1; #endif // if you are spinning right