aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDevine Lu Linvega <[email protected]>2019-06-03 13:35:13 +0900
committerDevine Lu Linvega <[email protected]>2019-06-03 13:35:13 +0900
commitd63e563066abaa3d26ddd3f90aca11b40be01fb9 (patch)
treeb59632aafd399e58606ddffe3aa5f0238c91428d
parentd7482764262f342f37e0aaddb89456d0410f6c9f (diff)
downloadOrca-d63e563066abaa3d26ddd3f90aca11b40be01fb9.tar.gz
Orca-d63e563066abaa3d26ddd3f90aca11b40be01fb9.zip
Fixed issue with UDP
-rw-r--r--desktop/core/library/_udp.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/core/library/_udp.js b/desktop/core/library/_udp.js
index f89c00c..b58bce1 100644
--- a/desktop/core/library/_udp.js
+++ b/desktop/core/library/_udp.js
@@ -9,7 +9,6 @@ export default function OperatorUdp (orca, x, y, passive) {
this.info = 'Sends UDP message'
this.operation = function (force = false) {
- if (!this.hasNeighbor('*') && force === false) { return }
for (let x = 1; x <= 36; x++) {
const g = orca.glyphAt(this.x + x, this.y)
@@ -17,6 +16,8 @@ export default function OperatorUdp (orca, x, y, passive) {
orca.lock(this.x + x, this.y)
}
+ if (!this.hasNeighbor('*') && force === false) { return }
+
let msg = ''
for (let x = 1; x <= 36; x++) {
const g = orca.glyphAt(this.x + x, this.y)