From 0caf97d9b8b32ea44df2c306ecf8e1b89eec5aaf Mon Sep 17 00:00:00 2001 From: CoCoSol007 Date: Wed, 21 Feb 2024 18:49:45 +0100 Subject: [PATCH] change doc --- crates/border-wars/src/map/generation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/border-wars/src/map/generation.rs b/crates/border-wars/src/map/generation.rs index 2dd0824..0869672 100644 --- a/crates/border-wars/src/map/generation.rs +++ b/crates/border-wars/src/map/generation.rs @@ -40,7 +40,7 @@ pub struct EndMapGeneration; /// Generate each tiles of the map if the [StartMapGeneration] is received. /// -/// The map is generated using the [Perlin] noise function and the [HexSpiral]. +/// The map is generated using a [Perlin] noise and a [HexSpiral]. /// /// It's generated one tile at a time, until the spiral is finished. fn generate_map( @@ -74,7 +74,7 @@ fn generate_map( } /// Returns the type of the [HexPosition] with the given noise. -fn get_type_tile(position: HexPosition, noise: &Perlin) -> Tile { +fn get_tile_type(position: HexPosition, noise: &Perlin) -> Tile { let pixel_position = position.to_pixel_coordinates() / MAP_GENERATION_ZOOM; let value = noise.get([pixel_position.x as f64, pixel_position.y as f64]); match value {