diff options
-rw-r--r-- | examples/jarvis.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/jarvis.js b/examples/jarvis.js index d76066d..ca58f8b 100644 --- a/examples/jarvis.js +++ b/examples/jarvis.js @@ -89,14 +89,16 @@ function timect(){ } function protectArea(send, tiles, locs, id, space, ctrl){ + let writelist = []; for (let loc of locs){ let tile = tiles[loc]; // Write diffs from the tile let diff = space.copy(); // Acts as a window for tile (only see relevant data) diff.comb(tile, comb.flip(comb.unmask)); diff.comb(tile, comb.sub); - writes.enqueue(diff.towrite()) + writelist.push(...diff.towrite()) } + writes.enqueue(writelist); } var search = new Space(); |