From 4756599df0c5532e76d537b290bd5e4682abfea2 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Tue, 8 Feb 2022 17:43:26 -0500 Subject: [PATCH] fix timer ticking during row play --- src/engine/playback.cpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/engine/playback.cpp b/src/engine/playback.cpp index f61928908..f7e92e2b9 100644 --- a/src/engine/playback.cpp +++ b/src/engine/playback.cpp @@ -997,15 +997,17 @@ bool DivEngine::nextTick(bool noAccum) { for (int i=0; itick(); if (!freelance) { - if (!noAccum) { - totalTicksR++; - totalTicks+=1000000/divider; - } - if (totalTicks>=1000000) { - totalTicks-=1000000; - totalSeconds++; - cmdsPerSecond=totalCmds-lastCmds; - lastCmds=totalCmds; + if (stepPlay!=1) { + if (!noAccum) { + totalTicksR++; + totalTicks+=1000000/divider; + } + if (totalTicks>=1000000) { + totalTicks-=1000000; + totalSeconds++; + cmdsPerSecond=totalCmds-lastCmds; + lastCmds=totalCmds; + } } if (consoleMode) fprintf(stderr,"\x1b[2K> %d:%.2d:%.2d.%.2d %.2x/%.2x:%.3d/%.3d %4dcmd/s\x1b[G",totalSeconds/3600,(totalSeconds/60)%60,totalSeconds%60,totalTicks/10000,curOrder,song.ordersLen,curRow,song.patLen,cmdsPerSecond);