aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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