save & load groups, add copy rule cells

This commit is contained in:
Crispy 2024-05-03 22:27:56 +02:00
parent f23c06f5d7
commit ac9685b2d5
2 changed files with 64 additions and 24 deletions

View file

@ -362,7 +362,7 @@ impl Dish {
let mut old_state = Vec::new();
for dy in 0..height {
for dx in 0..width {
old_state.push(self.get_cell(dx, dy).unwrap());
old_state.push(self.get_cell(x + dx, y + dy).unwrap());
}
}