fix first highlights

This commit is contained in:
Felix Roos 2022-11-13 02:00:09 +01:00
parent 122c4242ce
commit d957b19f55
2 changed files with 1 additions and 3 deletions

View file

@ -47,7 +47,7 @@ export class Cyclist {
); );
} }
getPhase() { getPhase() {
return this.getTime() - this.origin; return this.getTime() - this.origin - this.latency;
} }
setStarted(v) { setStarted(v) {
this.started = v; this.started = v;

View file

@ -1,4 +1,3 @@
console.log('load time.mjs');
let time; let time;
export function getTime() { export function getTime() {
if (!time) { if (!time) {
@ -8,6 +7,5 @@ export function getTime() {
} }
export function setTime(func) { export function setTime(func) {
console.log('setTime!');
time = func; time = func;
} }