Skip to content

Commit

Permalink
fixup: oopsie!
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisAMJ committed Nov 27, 2023
1 parent e90cb2f commit 76b0d08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Modules/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,15 +646,16 @@ void Host_AccumulateTime_Detour(float dt) {
Host_AccumulateTime_Hook.Disable();
Host_AccumulateTime(dt);
Host_AccumulateTime_Hook.Enable();
*host_frametime = *host_frametime_unbounded;
} else if (g_advance > 0) {
Host_AccumulateTime_Hook.Disable();
Host_AccumulateTime(1.0f/60);
Host_AccumulateTime_Hook.Enable();
*host_frametime = *host_frametime_unbounded;
--g_advance;
} else {
*host_frametime = 0;
}
*host_frametime = *host_frametime_unbounded;
}

void _Host_RunFrame_Render_Detour();
Expand Down

0 comments on commit 76b0d08

Please sign in to comment.