diff options
Diffstat (limited to 'examples')
-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 1a8137f..7b5c64e 100644 --- a/examples/jarvis.js +++ b/examples/jarvis.js @@ -99,14 +99,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); - main.enqueue(diff.towrite()) + writelist.push(...diff.towrite()) } + main.enqueue(writelist); } var search = new Space(); |