summaryrefslogtreecommitdiff
path: root/ecs/src/query.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ecs/src/query.rs')
-rw-r--r--ecs/src/query.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/ecs/src/query.rs b/ecs/src/query.rs
index 9874b19..683dde7 100644
--- a/ecs/src/query.rs
+++ b/ecs/src/query.rs
@@ -229,10 +229,8 @@ impl QueryComponentIds
.into_iter()
.collect::<HashSet<TypeId>>();
- // TODO: Make this a bit smarter. Queries with a same component can be compatible
- // if one of the queries have a component the other one does not have
self.component_type_ids
.iter()
- .any(|component_type_id| other_component_type_ids.contains(component_type_id))
+ .all(|component_type_id| other_component_type_ids.contains(component_type_id))
}
}