Skip to content

Commit

Permalink
fix: solocoop sv_pausable pause timing
Browse files Browse the repository at this point in the history
probably
  • Loading branch information
ThisAMJ committed Nov 14, 2023
1 parent 561806b commit 2213762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Features/Speedrun/SpeedrunTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ void SpeedrunTimer::Update() {
if (engine->IsCoop() && !engine->IsOrange() && SpeedrunTimer::IsRunning() && !sar_speedrun_time_pauses.GetBool()) {
if (pauseTimer->IsActive() && !g_speedrun.inCoopPause) {
// I don't understand how any of this works but I think we're off-by-one here
g_speedrun.saved = SpeedrunTimer::GetTotalTicks() + 1;
g_speedrun.saved = SpeedrunTimer::GetSplitTicks() + 1;
g_speedrun.inCoopPause = true;
} else if (!pauseTimer->IsActive() && g_speedrun.inCoopPause) {
g_speedrun.base = getCurrentTick();
Expand Down

0 comments on commit 2213762

Please sign in to comment.