aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--desktop/sources/scripts/clock.js17
1 files changed, 8 insertions, 9 deletions
diff --git a/desktop/sources/scripts/clock.js b/desktop/sources/scripts/clock.js
index 66a5448..95086cf 100644
--- a/desktop/sources/scripts/clock.js
+++ b/desktop/sources/scripts/clock.js
@@ -107,16 +107,15 @@ function Clock (client) {
if (performance.now() - pulse.last < 2000) { return }
this.untap()
}, 2000)
- } else {
- if (pulse.count == 0) {
- if (this.isPaused) { pulse.frame++ }
- else {
- if (pulse.frame > 0) {
- this.setFrame(client.orca.f + pulse.frame)
- pulse.frame = 0
- }
- client.run()
+ }
+ if (pulse.count == 0) {
+ if (this.isPaused) { pulse.frame++ }
+ else {
+ if (pulse.frame > 0) {
+ this.setFrame(client.orca.f + pulse.frame)
+ pulse.frame = 0
}
+ client.run()
}
}
}