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