add sandbox and lock input in other levels
This commit is contained in:
parent
bbe5ab0868
commit
af66e68c5f
6 changed files with 21 additions and 2 deletions
|
@ -197,7 +197,7 @@ impl Board {
|
|||
self.rows = new_rows;
|
||||
self.offset_y += len as isize;
|
||||
self.height += len;
|
||||
} else if p.y as usize > self.height {
|
||||
} else if p.y as usize >= self.height {
|
||||
let new_height = p.y as usize + 1;
|
||||
self.rows.resize(new_height, vec![Tile::Blank; self.width]);
|
||||
self.height = new_height;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue