From 624b3a94b498d7410049d2227568534c118a9f7d Mon Sep 17 00:00:00 2001 From: troido Date: Sun, 9 Feb 2020 00:38:00 +0100 Subject: ground is now always up-to-date; view doesn't rebuild whole room --- src/systems/makefloor.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/systems/makefloor.rs') 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); - } } } -- cgit