Resume Round: preserve current timer value instead of restarting from set value

This commit is contained in:
2026-04-08 20:29:42 -05:00
parent 56ecfaad54
commit a135746e37

View File

@@ -423,11 +423,11 @@ function toggleRound(){
function resumeRound(){
ws_send({type:'resume_round'});
// If linked (toggle ON) and timer stopped, resume it
// If linked (toggle ON) and timer stopped, resume it (preserve current value)
if(document.getElementById('timer-tog').checked && !modTimerRunning){
modTimerLoad();
modTimerRunning=true;
document.getElementById('btn-timer-ss').textContent='PAUSE';
broadcastTimerToPlayers(modTimerRemaining,true);
modTimerInterval=setInterval(()=>{
modTimerRemaining--;
renderModTimerDisplay();