mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
get timer on connect, patch play/pause functionality
This commit is contained in:
@@ -37,7 +37,9 @@ class ServerTimer {
|
||||
}
|
||||
|
||||
runTimer () {
|
||||
this.totalTime = convertFromHoursToMilliseconds(this.hours) + convertFromMinutesToMilliseconds(this.minutes);
|
||||
let total = convertFromHoursToMilliseconds(this.hours) + convertFromMinutesToMilliseconds(this.minutes);
|
||||
this.totalTime = total;
|
||||
this.currentTimeInMillis = total;
|
||||
this.logger.debug('STARTING TIMER FOR ' + this.totalTime + 'ms');
|
||||
this.start = Date.now();
|
||||
const expected = Date.now() + this.tickInterval;
|
||||
|
||||
Reference in New Issue
Block a user