Address code review.

This commit is contained in:
holychowders
2022-04-24 15:15:30 -05:00
parent 995504be26
commit 455cab0ee7
3 changed files with 55 additions and 46 deletions

View File

@ -236,7 +236,7 @@ pub fn does_entity_see_other(
.try_normalized()
.map_or(false, |v| v.dot(*controller.inputs.look_dir) > 0.15);
within_sight_dist && entities_have_line_of_sight(entity, other, read_data) && within_fov
within_sight_dist && within_fov && entities_have_line_of_sight(entity, other, read_data)
} else {
false
}