From 55eec3b0de9fef146a06b2d8307c3afa4ae4c792 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 19 Apr 2026 16:01:51 -0700 Subject: [PATCH] hitstun camera interp fix --- src/dusk/frame_interpolation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dusk/frame_interpolation.cpp b/src/dusk/frame_interpolation.cpp index c07e1f5cee..c72923da7d 100644 --- a/src/dusk/frame_interpolation.cpp +++ b/src/dusk/frame_interpolation.cpp @@ -133,6 +133,7 @@ void begin_frame(bool enabled, bool is_sim_frame, float step) { g_step = std::clamp(step, 0.0f, 1.0f); if (is_sim_frame) { s_interpolationCallBackWork.clear(); + s_cam_prev = std::move(s_cam_curr); } } @@ -271,7 +272,6 @@ void record_camera(::camera_process_class* cam, int camera_id) { if (!g_enabled || camera_id != 0 || cam == nullptr) { return; } - s_cam_prev = std::move(s_cam_curr); copy_view_to_snap(&s_cam_curr, cam->view); #if WIDESCREEN_SUPPORT s_cam_curr.wideZoom = mDoGph_gInf_c::isWideZoom();