Puppycam: fixed unsmooth landing from the high places

This commit is contained in:
aglab2
2021-08-24 23:33:05 +08:00
parent 435e8c74fa
commit 28c4ae2e3f

View File

@@ -1058,8 +1058,8 @@ void puppycam_projection_behaviours(void)
if (!(gMarioState->action & ACT_FLAG_SWIMMING))
{
gPuppyCam.floorY[0] = CLAMP(gPuppyCam.targetObj->oPosY - gPuppyCam.lastTargetFloorHeight, 0, 300);
gPuppyCam.floorY[1] = CLAMP(gPuppyCam.targetObj->oPosY - gPuppyCam.lastTargetFloorHeight, 0, 350);
gPuppyCam.floorY[0] = CLAMP(gPuppyCam.targetObj->oPosY - gPuppyCam.lastTargetFloorHeight, -300, 300);
gPuppyCam.floorY[1] = CLAMP(gPuppyCam.targetObj->oPosY - gPuppyCam.lastTargetFloorHeight, -300, 350);
gPuppyCam.swimPitch = approach_f32_asymptotic(gPuppyCam.swimPitch,0,0.2f);
}
else