diff options
| author | troido <troido@protonmail.com> | 2020-02-09 00:38:00 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-09 00:38:00 +0100 |
| commit | 624b3a94b498d7410049d2227568534c118a9f7d (patch) | |
| tree | e8ef65c48e332a8f1c90d97c6aa346baffece394 /src/systems/makefloor.rs | |
| parent | b56add981c2f520789b97d1ee6f71dae41e8c900 (diff) | |
ground is now always up-to-date; view doesn't rebuild whole room
Diffstat (limited to 'src/systems/makefloor.rs')
| -rw-r--r-- | src/systems/makefloor.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/systems/makefloor.rs b/src/systems/makefloor.rs index 74e4389..689fcec 100644 --- a/src/systems/makefloor.rs +++ b/src/systems/makefloor.rs @@ -36,13 +36,6 @@ impl <'a> System<'a> for MakeFloor { for (ent, pos, _new) in (&entities, &positions, &new).join() { ground.cells.entry(pos.pos).or_insert(HashSet::new()).insert(ent); } - for (ent, pos, mov) in (&entities, &positions, &moved).join() { - ground.cells.entry(pos.pos).or_insert(HashSet::new()).insert(ent); - ground.cells.get_mut(&mov.from).unwrap().remove(&ent); - } - for (ent, pos, _removed) in (&entities, &positions, &removed).join() { - ground.cells.get_mut(&pos.pos).unwrap().remove(&ent); - } } } |
