Remove output argument from clearMap function

This commit is contained in:
Unknown 2018-10-21 14:00:53 +02:00
parent e115ed2f48
commit 3a6e34945a
1 changed files with 3 additions and 4 deletions

View File

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