mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 06:19:33 -04:00
fix first highlights
This commit is contained in:
@@ -47,7 +47,7 @@ export class Cyclist {
|
||||
);
|
||||
}
|
||||
getPhase() {
|
||||
return this.getTime() - this.origin;
|
||||
return this.getTime() - this.origin - this.latency;
|
||||
}
|
||||
setStarted(v) {
|
||||
this.started = v;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
console.log('load time.mjs');
|
||||
let time;
|
||||
export function getTime() {
|
||||
if (!time) {
|
||||
@@ -8,6 +7,5 @@ export function getTime() {
|
||||
}
|
||||
|
||||
export function setTime(func) {
|
||||
console.log('setTime!');
|
||||
time = func;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user