fix error

This commit is contained in:
CoCo_Sol 2023-05-26 19:20:52 +02:00
parent 7cc077e4f4
commit 4cee5d5cd5

View file

@ -80,7 +80,7 @@ pub fn init_map(width: u8, height: u8, mut commands: Commands) {
for x in 0..width { for x in 0..width {
for y in 0..height { for y in 0..height {
if !(x % 2 == 0 && y == width - 1) { 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 }));
} }
} }
} }