Skip to content

Commit 96c2c44

Browse files
committed
fixup: use cumulative time
1 parent 69bb397 commit 96c2c44

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Features/Speedrun/SpeedrunTimer.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,8 +1158,9 @@ ON_EVENT(PRE_TICK) {
11581158
// pretty much only useful for that.
11591159
size_t last_split_idx = g_speedrun.splits.size() - 1;
11601160
if (last_split_idx < 0 || last_split_idx >= g_autoreset_ticks.size()) return;
1161-
1162-
if (g_speedrun.splits[last_split_idx].ticks < g_autoreset_ticks[last_split_idx]) {
1161+
1162+
ticks -= SpeedrunTimer::GetSplitTicks();
1163+
if (ticks < g_autoreset_ticks[last_split_idx]) {
11631164
SpeedrunTimer::Reset(false);
11641165
engine->ExecuteCommand("restart_level");
11651166
}

0 commit comments

Comments
 (0)