save
Some checks failed
Rust Checks / checks (push) Failing after 6s

This commit is contained in:
CoCo_Sol 2024-04-03 19:23:08 +02:00
parent ad4c55678a
commit 54eb8d77b5
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ fn init_spawn_point(
.abs();
if radius == 0 {
panic!("Map radius must be greater than 0");
return;
}
let map_hashmap: HashMap<&TilePosition, Entity> = map.iter().map(|(e, p)| (p, e)).collect();

View file

@ -79,7 +79,7 @@ fn lobby_ui(
let index = *map_size as u16;
let nomber_of_players = all_players_query.iter().count() as u32;
let radius = nomber_of_players as u16 * 2 * index;
let radius = nomber_of_players as u16 * 2 * (index+1);
// Start the game.
for player in all_players_query.iter() {