summaryrefslogtreecommitdiff
path: root/server/src/customer/mod.rs
diff options
context:
space:
mode:
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 },
},
);