aboutsummaryrefslogtreecommitdiff
path: root/server/src/server.rs
diff options
context:
space:
mode:
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);