diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp index a3a969f67..d3e038a63 100644 --- a/soh/soh/OTRGlobals.cpp +++ b/soh/soh/OTRGlobals.cpp @@ -1854,7 +1854,7 @@ extern "C" void Overlay_DisplayText(float duration, const char* text) { } extern "C" void Overlay_DisplayText_Seconds(int seconds, const char* text) { - float duration = seconds * CVarGetInteger("gInterpolationFPS", 20) * 0.05; + float duration = seconds * OTRGlobals::Instance->GetInterpolationFPS() * 0.05; SohImGui::GetGameOverlay()->TextDrawNotification(duration, true, text); } diff --git a/soh/soh/frame_interpolation.cpp b/soh/soh/frame_interpolation.cpp index f4709d3bc..c42f0e89f 100644 --- a/soh/soh/frame_interpolation.cpp +++ b/soh/soh/frame_interpolation.cpp @@ -6,6 +6,7 @@ #include #include "frame_interpolation.h" +#include "soh/OTRGlobals.h" /* Frame interpolation. @@ -451,7 +452,7 @@ void FrameInterpolation_StartRecord(void) { current_recording = {}; current_path.clear(); current_path.push_back(¤t_recording.root_path); - if (CVarGetInteger("gInterpolationFPS", 20) != 20) { + if (OTRGlobals::Instance->GetInterpolationFPS() != 20) { is_recording = true; } }