From d4bec3ac3d64426d4d432fbe65630ec4bb92f042 Mon Sep 17 00:00:00 2001 From: CoCo_Sol007 Date: Thu, 4 Apr 2024 21:09:22 +0200 Subject: [PATCH] add truc --- crates/border-wars/src/map/spawnpoint.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/border-wars/src/map/spawnpoint.rs b/crates/border-wars/src/map/spawnpoint.rs index 9bfff25..f128acf 100644 --- a/crates/border-wars/src/map/spawnpoint.rs +++ b/crates/border-wars/src/map/spawnpoint.rs @@ -37,6 +37,7 @@ fn init_spawn_point( let mut sorted_players = players.iter().collect::>(); sorted_players.sort_by(|a: &&Player, b: &&Player| a.uuid.cmp(&b.uuid)); + let mut sorted_players = sorted_players.iter(); let interval = radius as usize * 3 / sorted_players.len();