Remove output argument from clearMap function

This commit is contained in:
Unknown 2018-10-21 14:00:53 +02:00
parent e115ed2f48
commit 3a6e34945a

View file

@ -35,10 +35,9 @@ class Simulation {
Simulation.fromGrid(Grid<bool> map) : this.map = map; Simulation.fromGrid(Grid<bool> map) : this.map = map;
Grid<bool> clearMap(Grid<bool> map) { Grid<bool> clearMap() {
map ??= this.map; dirty = true;
// dirty = true; map.setAll(0, List.filled(map.length, false));
// map.setAll(0, List.filled(map.length, false));
return map; return map;
} }