auto resize board when drawing out of bounds

This commit is contained in:
Crispy 2024-10-06 23:30:59 +02:00
parent f9b8dba019
commit db7a2b2418
5 changed files with 96 additions and 36 deletions

View file

@ -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;