aboutsummaryrefslogtreecommitdiff
path: root/server/src/customer/mod.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-26 16:53:07 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-26 16:53:07 +0200
commit2ca6ac7ab329036d0155de2de4b0a11f3a785414 (patch)
tree7472368efb282a4380b45931f3462e9930f48a36 /server/src/customer/mod.rs
parentc4b0f8d698b574c711b1e205371adfd3e3339487 (diff)
downloadhurrycurry-2ca6ac7ab329036d0155de2de4b0a11f3a785414.tar
hurrycurry-2ca6ac7ab329036d0155de2de4b0a11f3a785414.tar.bz2
hurrycurry-2ca6ac7ab329036d0155de2de4b0a11f3a785414.tar.zst
boosting
Diffstat (limited to 'server/src/customer/mod.rs')
-rw-r--r--server/src/customer/mod.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/server/src/customer/mod.rs b/server/src/customer/mod.rs
index e6f999e6..ba65a5e2 100644
--- a/server/src/customer/mod.rs
+++ b/server/src/customer/mod.rs
@@ -25,7 +25,7 @@ use crate::{
};
use anyhow::{anyhow, Result};
use fake::{faker, Fake};
-use glam::{IVec2, Vec2};
+use glam::IVec2;
use log::debug;
use movement::MovementBase;
use pathfinding::{find_path, Path};
@@ -115,11 +115,7 @@ impl DemandState {
self.customers.insert(
id,
Customer {
- movement: MovementBase {
- position: data.customer_spawn,
- facing: Vec2::X,
- vel: Vec2::ZERO,
- },
+ movement: MovementBase::new(data.customer_spawn),
state: CustomerState::Entering { path, chair },
},
);