summaryrefslogtreecommitdiff
path: root/src/systems/makefloor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/systems/makefloor.rs')
-rw-r--r--src/systems/makefloor.rs7
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);
- }
}
}