summaryrefslogtreecommitdiff
path: root/server/src/customer/pathfinding.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-09 15:31:13 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-09 15:31:13 +0200
commit545f79b03ca1fa778cfffb77ee0fbd0f5e66de44 (patch)
treea0324b8731f0042e89a6b0417837d8aa933e5aaf /server/src/customer/pathfinding.rs
parent1da3465d7a4402760aed03ce2f450cd1b412417f (diff)
downloadhurrycurry-545f79b03ca1fa778cfffb77ee0fbd0f5e66de44.tar
hurrycurry-545f79b03ca1fa778cfffb77ee0fbd0f5e66de44.tar.bz2
hurrycurry-545f79b03ca1fa778cfffb77ee0fbd0f5e66de44.tar.zst
adjust logging and better duplex
Diffstat (limited to 'server/src/customer/pathfinding.rs')
-rw-r--r--server/src/customer/pathfinding.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/customer/pathfinding.rs b/server/src/customer/pathfinding.rs
index 29ee4e00..2fe938a9 100644
--- a/server/src/customer/pathfinding.rs
+++ b/server/src/customer/pathfinding.rs
@@ -20,7 +20,7 @@ use hurrycurry_protocol::{
glam::{IVec2, Vec2},
PacketS,
};
-use log::debug;
+use log::trace;
use std::{
cmp::Ordering,
collections::{BinaryHeap, HashMap, HashSet},
@@ -36,7 +36,7 @@ impl Path {
dt: f32,
) -> PacketS {
if let Some(next) = self.0.last().copied() {
- debug!("next {next}");
+ trace!("next {next}");
if next.distance(player.position) < if self.0.len() == 1 { 0.1 } else { 0.6 } {
self.0.pop();
}