We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69bb397 commit 96c2c44Copy full SHA for 96c2c44
src/Features/Speedrun/SpeedrunTimer.cpp
@@ -1158,8 +1158,9 @@ ON_EVENT(PRE_TICK) {
1158
// pretty much only useful for that.
1159
size_t last_split_idx = g_speedrun.splits.size() - 1;
1160
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]) {
+
+ ticks -= SpeedrunTimer::GetSplitTicks();
1163
+ if (ticks < g_autoreset_ticks[last_split_idx]) {
1164
SpeedrunTimer::Reset(false);
1165
engine->ExecuteCommand("restart_level");
1166
}
0 commit comments