renomage de la fonction
This commit is contained in:
parent
562b965c8b
commit
7cc077e4f4
|
@ -87,7 +87,7 @@ pub fn init_map(width: u8, height: u8, mut commands: Commands) {
|
|||
}
|
||||
|
||||
/// Cette fonction return un ellement aleatoire entre de la Grass Hill et Forest
|
||||
fn generate_random_tile_for_map() -> Tile {
|
||||
fn get_random_tile() -> Tile {
|
||||
let mut rng = rand::thread_rng();
|
||||
match rng.gen_range(1..=4) {
|
||||
1 => Tile::Forest,
|
||||
|
|
Loading…
Reference in a new issue