Add explanatory comments for resumeTimer calls

Co-authored-by: AlecM33 <24642328+AlecM33@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-23 23:44:49 +00:00
parent 8c5cdfb0f1
commit 4e4d324ec8

View File

@@ -339,6 +339,8 @@ const Events = [
);
break;
case GAME_PROCESS_COMMANDS.RESUME_TIMER:
// resumeTimer() returns the timesUpPromise, but we don't await it here
// because timer completion is already handled by TimerManager.runTimer()
timer.resumeTimer();
game.timerParams.paused = false;
game.timerParams.timeRemaining = timer.currentTimeInMillis;
@@ -419,6 +421,8 @@ const Events = [
);
break;
case GAME_PROCESS_COMMANDS.RESUME_TIMER:
// resumeTimer() returns the timesUpPromise, but we don't await it here
// because timer completion is already handled by TimerManager.runTimer()
timer.resumeTimer();
game.timerParams.paused = false;
game.timerParams.timeRemaining = timer.currentTimeInMillis;