Use opaque to be more clear.

This commit is contained in:
Nolan Darilek 2021-09-23 12:59:05 -05:00
parent 8224d85b4b
commit ad60bd7a40

View File

@ -232,7 +232,7 @@ fn spawn_colliders(
.insert(MapObstruction) .insert(MapObstruction)
.id(); .id();
if tile.blocks_visibility() { if tile.blocks_visibility() {
commands.entity(id).insert(Visible::default()); commands.entity(id).insert(Visible::opaque());
} }
commands.entity(map_entity).push_children(&[id]); commands.entity(map_entity).push_children(&[id]);
} }
@ -327,7 +327,7 @@ fn spawn_colliders(
.insert(MapObstruction) .insert(MapObstruction)
.id(); .id();
if map.at(x as usize, y as usize).blocks_visibility() { if map.at(x as usize, y as usize).blocks_visibility() {
commands.entity(id).insert(Visible::default()); commands.entity(id).insert(Visible::opaque());
} }
commands.entity(map_entity).push_children(&[id]); commands.entity(map_entity).push_children(&[id]);
bottom_left = None; bottom_left = None;