aboutsummaryrefslogtreecommitdiffhomepage
path: root/desktop
diff options
context:
space:
mode:
authorneauoire <[email protected]>2019-12-06 08:28:21 -0500
committerneauoire <[email protected]>2019-12-06 08:28:21 -0500
commit8b505b6a84806c75ee6194912bdecc55e46bcbd1 (patch)
treef0712e30f45a588292c752ae4f405f05c438a191 /desktop
parent35f0f52be7b5539323c8312aa24c351ee44956eb (diff)
downloadOrca-8b505b6a84806c75ee6194912bdecc55e46bcbd1.tar.gz
Orca-8b505b6a84806c75ee6194912bdecc55e46bcbd1.zip
Fixed issue with banging ports
Diffstat (limited to 'desktop')
-rw-r--r--desktop/sources/scripts/core/operator.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/sources/scripts/core/operator.js b/desktop/sources/scripts/core/operator.js
index 4077f99..8cfe4b1 100644
--- a/desktop/sources/scripts/core/operator.js
+++ b/desktop/sources/scripts/core/operator.js
@@ -32,7 +32,9 @@ function Operator (orca, x, y, glyph = '.', passive = false) {
this.bang = function (b) {
if (!this.ports.output) { console.warn(this.name, 'Trying to bang, but no port'); return }
- orca.write(this.x + this.ports.output.x, this.y + this.ports.output.y, b === true ? '*' : '.')
+ if (b === false) { return }
+ orca.write(this.x + this.ports.output.x, this.y + this.ports.output.y, '*')
+ orca.lock(this.x + this.ports.output.x, this.y + this.ports.output.y)
}
// Phases