From 4cee5d5cd5a9aa3c98efe1ef0670939c666ded3e Mon Sep 17 00:00:00 2001 From: CoCo_Sol Date: Fri, 26 May 2023 19:20:52 +0200 Subject: [PATCH] fix error --- src/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 })); } } }