2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 19:04:56 +00:00

Yeah, I'm an idiot, std::min is the correct one

This commit is contained in:
2021-07-02 22:23:29 -07:00
parent 7a7af73c94
commit 0b523f98c3
2 changed files with 2 additions and 2 deletions

View File

@@ -447,7 +447,7 @@ public:
using delta_duration = std::chrono::duration<float, std::ratio<1>>;
realDt = std::chrono::duration_cast<delta_duration>(now - m_prevFrameTime).count();
if (m_cvarCommons.m_variableDt->toBoolean()) {
dt = std::max(realDt, 1 / 30.f);
dt = std::min(realDt, 1 / 30.f);
}
}
m_prevFrameTime = now;

2
extern/imgui vendored