diff options
author | neauoire <[email protected]> | 2019-12-06 08:28:21 -0500 |
---|---|---|
committer | neauoire <[email protected]> | 2019-12-06 08:28:21 -0500 |
commit | 8b505b6a84806c75ee6194912bdecc55e46bcbd1 (patch) | |
tree | f0712e30f45a588292c752ae4f405f05c438a191 /desktop | |
parent | 35f0f52be7b5539323c8312aa24c351ee44956eb (diff) | |
download | Orca-8b505b6a84806c75ee6194912bdecc55e46bcbd1.tar.gz Orca-8b505b6a84806c75ee6194912bdecc55e46bcbd1.zip |
Fixed issue with banging ports
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/sources/scripts/core/operator.js | 4 |
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 |