aboutsummaryrefslogtreecommitdiff
path: root/server/src/server.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-09-30 02:49:07 +0200
committermetamuffin <metamuffin@disroot.org>2025-09-30 02:49:07 +0200
commitbdf3c2d0e8221792d3adc8c82e2c2db087319701 (patch)
tree70541fc9500c1f87f119cad6504922b5c2d81b75 /server/src/server.rs
parentd2c793ec7632a5da8065fd52436cfd676cc96a7b (diff)
downloadhurrycurry-bdf3c2d0e8221792d3adc8c82e2c2db087319701.tar
hurrycurry-bdf3c2d0e8221792d3adc8c82e2c2db087319701.tar.bz2
hurrycurry-bdf3c2d0e8221792d3adc8c82e2c2db087319701.tar.zst
New compact map format tile declarations
Diffstat (limited to 'server/src/server.rs')
-rw-r--r--server/src/server.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/server.rs b/server/src/server.rs
index 14244394..d074bedd 100644
--- a/server/src/server.rs
+++ b/server/src/server.rs
@@ -268,7 +268,7 @@ impl GameServerExt for Game {
packet_out: Option<&mut VecDeque<PacketC>>,
) {
let position = custom_position.unwrap_or(match class {
- PlayerClass::Customer => serverdata.customer_spawn,
+ PlayerClass::Customer => serverdata.customer_spawn.unwrap_or(serverdata.chef_spawn),
PlayerClass::Bot | PlayerClass::Chef => serverdata.chef_spawn,
PlayerClass::Tram => Vec2::ZERO, // should always have custom location
}) + (Vec2::new(random(), random()) - 0.5);