From 5acdf0a7ae6fcf92d399d9023da07240e7870fef Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 3 Jun 2025 21:31:03 +0200 Subject: custom tram spawn position --- server/src/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src/server.rs') diff --git a/server/src/server.rs b/server/src/server.rs index 98a9826c..47611eb6 100644 --- a/server/src/server.rs +++ b/server/src/server.rs @@ -254,7 +254,7 @@ impl GameServerExt for Game { let position = custom_position.unwrap_or(match class { PlayerClass::Customer => serverdata.customer_spawn, PlayerClass::Bot | PlayerClass::Chef => serverdata.chef_spawn, - PlayerClass::Tram => Vec2::ZERO, // TODO should always have custom location + PlayerClass::Tram => Vec2::ZERO, // should always have custom location }) + (Vec2::new(random(), random()) - 0.5); self.players.insert( id, -- cgit v1.2.3-70-g09d2