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.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/systems/makefloor.rs b/src/systems/makefloor.rs
index b6fedd9..209d965 100644
--- a/src/systems/makefloor.rs
+++ b/src/systems/makefloor.rs
@@ -8,7 +8,7 @@ use specs::{
Join
};
-use super::super::pos::Pos;
+use super::super::components::Position;
use super::super::resources::{
Floor
@@ -17,11 +17,11 @@ use super::super::resources::{
pub struct MakeFloor;
impl <'a> System<'a> for MakeFloor {
- type SystemData = (Entities<'a>, Write<'a, Floor>, ReadStorage<'a, Pos>);
+ type SystemData = (Entities<'a>, Write<'a, Floor>, ReadStorage<'a, Position>);
fn run(&mut self, (entities, mut floor, positions): Self::SystemData) {
floor.cells.clear();
for (ent, pos) in (&entities, &positions).join() {
- floor.cells.entry(*pos).or_insert(Vec::new()).push(ent);
+ floor.cells.entry(pos.pos).or_insert(Vec::new()).push(ent);
}
}
}