aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorneauoire <[email protected]>2019-12-26 12:17:57 -0500
committerneauoire <[email protected]>2019-12-26 12:17:57 -0500
commit0eca0704ff7dc679a4bfceeb3140241fa58f929e (patch)
tree0b616d493cee4f2f88e300d63b4183ac474ef4aa
parentacfd0c7c0a5e4265b0fc38b29a610aca4994969a (diff)
downloadOrca-0eca0704ff7dc679a4bfceeb3140241fa58f929e.tar.gz
Orca-0eca0704ff7dc679a4bfceeb3140241fa58f929e.zip
Fixed issue with C oprator
-rw-r--r--desktop/sources/scripts/client.js2
-rw-r--r--desktop/sources/scripts/core/library.js2
-rw-r--r--sw.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/desktop/sources/scripts/client.js b/desktop/sources/scripts/client.js
index b8f673a..b98bfe0 100644
--- a/desktop/sources/scripts/client.js
+++ b/desktop/sources/scripts/client.js
@@ -12,7 +12,7 @@
/* global Theme */
function Client () {
- this.version = 165
+ this.version = 166
this.library = library
this.theme = new Theme(this)
diff --git a/desktop/sources/scripts/core/library.js b/desktop/sources/scripts/core/library.js
index 5a1b6f2..1889062 100644
--- a/desktop/sources/scripts/core/library.js
+++ b/desktop/sources/scripts/core/library.js
@@ -52,7 +52,7 @@ library.c = function OperatorC (orca, x, y, passive) {
this.operation = function (force = false) {
const rate = this.listen(this.ports.rate, true)
const mod = this.listen(this.ports.mod, true)
- const val = orca.f % (mod * rate)
+ const val = Math.floor(orca.f / rate) % mod
return orca.keyOf(val)
}
}
diff --git a/sw.js b/sw.js
index fce7339..56d6cd1 100644
--- a/sw.js
+++ b/sw.js
@@ -1,4 +1,4 @@
-// 165
+// 166
const assets = [
'./',