Appease Clippy.
This commit is contained in:
parent
6d8f235657
commit
5db110ccc8
|
@ -76,7 +76,7 @@ impl Viewshed {
|
|||
for e in entities {
|
||||
new_visible_entities.insert(*e);
|
||||
}
|
||||
if entities.contains(&viewer_entity) {
|
||||
if entities.contains(viewer_entity) {
|
||||
return 0;
|
||||
} else {
|
||||
return *opacity;
|
||||
|
@ -107,7 +107,7 @@ impl Viewshed {
|
|||
for e in &entities {
|
||||
new_visible_entities.insert(*e);
|
||||
}
|
||||
if entities.contains(&viewer_entity) {
|
||||
if entities.contains(viewer_entity) {
|
||||
0
|
||||
} else {
|
||||
cache.insert(coord, (opacity, entities));
|
||||
|
|
Loading…
Reference in New Issue
Block a user