aboutsummaryrefslogtreecommitdiffhomepage
path: root/desktop/core
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/core')
-rw-r--r--desktop/core/library/p.js4
-rw-r--r--desktop/core/library/x.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/desktop/core/library/p.js b/desktop/core/library/p.js
index df0aea5..55c5e91 100644
--- a/desktop/core/library/p.js
+++ b/desktop/core/library/p.js
@@ -3,7 +3,7 @@
const Operator = require('../operator')
function OperatorP (orca, x, y, passive) {
- Operator.call(this, orca, x, y, 'p', passive)
+ Operator.call(this, orca, x, y, 'p', true)
this.name = 'push'
this.info = 'Writes an eastward operator with offset.'
@@ -23,7 +23,7 @@ function OperatorP (orca, x, y, passive) {
}
this.run = function () {
- if (!this.bang()) { return }
+ if (!passive && !this.bang()) { return }
this.draw = false
diff --git a/desktop/core/library/x.js b/desktop/core/library/x.js
index 55cd141..65177f8 100644
--- a/desktop/core/library/x.js
+++ b/desktop/core/library/x.js
@@ -3,7 +3,7 @@
const Operator = require('../operator')
function OperatorX (orca, x, y, passive) {
- Operator.call(this, orca, x, y, 'x', passive)
+ Operator.call(this, orca, x, y, 'x', true)
this.name = 'teleport'
this.info = 'Writes a distant operator with offset.'
@@ -20,7 +20,7 @@ function OperatorX (orca, x, y, passive) {
}
this.run = function () {
- if (!this.bang()) { return }
+ if (!passive && !this.bang()) { return }
this.draw = false