From 28c4ae2e3ffd9c1f7a2a93ba629481eccdd1347e Mon Sep 17 00:00:00 2001 From: aglab2 Date: Tue, 24 Aug 2021 23:33:05 +0800 Subject: [PATCH] Puppycam: fixed unsmooth landing from the high places --- src/game/puppycam2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/puppycam2.c b/src/game/puppycam2.c index 397a4e468..a774c239c 100644 --- a/src/game/puppycam2.c +++ b/src/game/puppycam2.c @@ -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