auto resize board when drawing out of bounds
This commit is contained in:
parent
f9b8dba019
commit
db7a2b2418
5 changed files with 96 additions and 36 deletions
|
@ -121,7 +121,7 @@ impl Machine {
|
|||
continue;
|
||||
};
|
||||
let next_pos = dir.step(marble_pos);
|
||||
if !self.board.in_bounds(next_pos) {
|
||||
if !self.board.pos_in_bounds(next_pos) {
|
||||
continue;
|
||||
}
|
||||
let mut new_tile = None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue