diff options
Diffstat (limited to 'src/resources/ground.rs')
| -rw-r--r-- | src/resources/ground.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/ground.rs b/src/resources/ground.rs index 7868be9..46473b8 100644 --- a/src/resources/ground.rs +++ b/src/resources/ground.rs @@ -57,12 +57,12 @@ impl Ground { nearby_components } - pub fn by_height(&self, pos: &Pos, visibles: &ReadStorage<Visible>, ignore: &Entity) -> Vec<Entity> { + pub fn by_height(&self, pos: &Pos, visibles: &ReadStorage<Visible>) -> Vec<Entity> { let mut entities: Vec<Entity> = self.cells .get(&pos).unwrap_or(&HashSet::new()) .iter() .cloned() - .filter(|e| e != ignore && visibles.contains(*e)) + .filter(|e| visibles.contains(*e)) .collect(); entities.sort_by(|a, b| visibles.get(*b).unwrap().height.partial_cmp(&visibles.get(*a).unwrap().height).unwrap() |
