mirror of
https://github.com/AlecM33/Werewolf.git
synced 2026-02-10 04:03:33 +01:00
Add explanatory comments for resumeTimer calls
Co-authored-by: AlecM33 <24642328+AlecM33@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user