From 76ff00757f364312ea183e179c41b68146b6a517 Mon Sep 17 00:00:00 2001 From: Imbris Date: Mon, 29 Mar 2021 02:58:57 -0400 Subject: [PATCH] Appease clippy, add CHANGELOG entry --- CHANGELOG.md | 2 ++ common/src/util/spatial_grid.rs | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e43717338f..cb78c2f892 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -74,6 +74,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Jump has been decreased in height but extended in length as a result of the new gravity - Fall damage has been adjusted with the new gravity in mind - Projectiles now generally have a different arc because they no longer have their own gravity modifier +- Increased agent system target search efficiency speeding up the server +- Added more parallelization to terrain serialization and removed extra cloning speeding up the server ### Removed diff --git a/common/src/util/spatial_grid.rs b/common/src/util/spatial_grid.rs index 3d9a078aa4..aab6b67381 100644 --- a/common/src/util/spatial_grid.rs +++ b/common/src/util/spatial_grid.rs @@ -81,11 +81,11 @@ impl SpatialGrid { // TODO: using the circle directly would be tighter (how efficient would it be // to query the cells intersecting a circle?) (note: if doing this rename // the function) - pub fn in_circle_aabr<'a>( - &'a self, + pub fn in_circle_aabr( + &self, center: Vec2, radius: f32, - ) -> impl Iterator + 'a { + ) -> impl Iterator + '_ { let center = center.map(|e| e as i32); let radius = radius.ceil() as i32; // From conversion of center above