Merge pull request #41 from aglab2/pupper-landing-master

Puppycam: fixed unsmooth landing from the high places
This commit is contained in:
Fazana
2021-08-24 16:50:38 +01:00
committed by GitHub

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