diff options
Diffstat (limited to 'src/world/world.js')
-rw-r--r-- | src/world/world.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/world/world.js b/src/world/world.js index 4bab4d3..63d974a 100644 --- a/src/world/world.js +++ b/src/world/world.js @@ -16,7 +16,10 @@ import { proposal_merge } from './proposal.js'; export function world_update(world, postprocess=[]) { const lattice_props = lattice_update(world.lattice, world.lattice_rules); - const intermediate_lattice = lattice_apply(world.lattice, lattice_props); + const intermediate_lattice = lattice_apply( + world.lattice.map(row => row.map(cell => ({ ...cell, flags: {} }))), + lattice_props + ); const decisions = world.agents .map(a => agent_decide(world, a, world.senses, world.actions)) |