diff options
author | Devine Lu Linvega <[email protected]> | 2019-06-03 13:35:13 +0900 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2019-06-03 13:35:13 +0900 |
commit | d63e563066abaa3d26ddd3f90aca11b40be01fb9 (patch) | |
tree | b59632aafd399e58606ddffe3aa5f0238c91428d | |
parent | d7482764262f342f37e0aaddb89456d0410f6c9f (diff) | |
download | Orca-d63e563066abaa3d26ddd3f90aca11b40be01fb9.tar.gz Orca-d63e563066abaa3d26ddd3f90aca11b40be01fb9.zip |
Fixed issue with UDP
-rw-r--r-- | desktop/core/library/_udp.js | 3 |
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) |