Skip to content

Commit

Permalink
60fps progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Niko committed Apr 13, 2024
1 parent a24811b commit 5a1514c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions decompile/General/Vehicle/VehFrameProc_Spinning.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion decompile/General/Vehicle/VehPhysProc_SpinStop_FuncPtrs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a1514c

Please sign in to comment.