mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-30 01:37:51 +01:00
fix bug with timer continuing to run after client reconnect
This commit is contained in:
@@ -150,16 +150,6 @@ export class GameTimerManager {
|
||||
pauseBtn.addEventListener('click', this.pauseListener);
|
||||
document.getElementById('play-pause').appendChild(pauseBtn);
|
||||
}
|
||||
|
||||
processTimeRemaining (timeRemaining, paused, timerWorker) {
|
||||
if (paused) {
|
||||
this.displayPausedTime(timeRemaining);
|
||||
} else if (timeRemaining === 0) {
|
||||
this.displayExpiredTime();
|
||||
} else {
|
||||
this.resumeGameTimer(timeRemaining, globals.CLOCK_TICK_INTERVAL_MILLIS, null, timerWorker);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function returnHumanReadableTime (milliseconds, tenthsOfSeconds = false) {
|
||||
|
||||
Reference in New Issue
Block a user