Skip to content

Commit d398b12

Browse files
author
Niko
committed
60fps Plant bugfix
1 parent 40e9057 commit d398b12

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

decompile/General/CAMERA/CAM_17_FollowDriver_Normal.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,11 @@ void DECOMP_CAM_FollowDriver_Normal(struct CameraDC *cDC, struct Driver *d, stru
446446
// camera dirZ, cameraPosZ minus driverPosZ
447447
*(int *)(scratchpad + 0x254) = (int)pb->pos[2] - (d->posCurr.z >> 8);
448448

449-
if ((pb->rot[0] < 0x800) && (0x800 < pb->rot[0] + 0x10))
449+
if (pb->rot[0] < 0x800)
450450
{
451-
pb->rot[0] = 0x800;
451+
pb->rot[0] += FPS_HALF(0x10);
452+
if (pb->rot[0] > 0x800)
453+
pb->rot[0] = 0x800;
452454
}
453455
}
454456

0 commit comments

Comments
 (0)