Fix free cam being offset by instant warps

This commit is contained in:
Agent X 2023-11-12 09:53:27 -05:00
parent ce987ef3dd
commit 5b306b2a17
1 changed files with 6 additions and 4 deletions

View File

@ -5533,10 +5533,12 @@ void warp_camera(f32 displacementX, f32 displacementY, f32 displacementZ) {
vec3f_add(gLakituState.goalFocus, displacement);
marioStates->waterLevel += displacementY;
vec3f_add(start->focus, displacement);
vec3f_add(start->pos, displacement);
vec3f_add(end->focus, displacement);
vec3f_add(end->pos, displacement);
if (gLakituState.mode != CAMERA_MODE_NEWCAM) {
vec3f_add(start->focus, displacement);
vec3f_add(start->pos, displacement);
vec3f_add(end->focus, displacement);
vec3f_add(end->pos, displacement);
}
skip_camera_interpolation();
}