Remove output argument from clearMap function
This commit is contained in:
parent
e115ed2f48
commit
3a6e34945a
1 changed files with 3 additions and 4 deletions
|
@ -35,10 +35,9 @@ class Simulation {
|
|||
|
||||
Simulation.fromGrid(Grid<bool> map) : this.map = map;
|
||||
|
||||
Grid<bool> clearMap(Grid<bool> map) {
|
||||
map ??= this.map;
|
||||
// dirty = true;
|
||||
// map.setAll(0, List.filled(map.length, false));
|
||||
Grid<bool> clearMap() {
|
||||
dirty = true;
|
||||
map.setAll(0, List.filled(map.length, false));
|
||||
return map;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue