fix error
This commit is contained in:
parent
7cc077e4f4
commit
4cee5d5cd5
|
@ -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 }));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue