diff --git a/src/map.rs b/src/map.rs index d8c7716..e9ec6b5 100644 --- a/src/map.rs +++ b/src/map.rs @@ -80,7 +80,7 @@ pub fn init_map(width: u8, height: u8, mut commands: Commands) { for x in 0..width { for y in 0..height { if !(x % 2 == 0 && y == width - 1) { - commands.spawn((generate_random_tile_for_map(), Position { x, y })); + commands.spawn((get_random_tile(), Position { x, y })); } } }