Add audio

This commit is contained in:
asraelite 2018-03-06 20:07:13 +00:00
parent 0101ef8d55
commit 62b8c74f57
26 changed files with 225 additions and 18 deletions

View file

@ -87,7 +87,9 @@ function validate() {
if (tile.type == 'thruster') thrustersFound++;
if (tile.type == 'fuel') fuelFound++;
tile.neighbours.forEach(n => {
if (unvisited.has(n)) visit(n);
if (unvisited.has(n) && n.neighbours.indexOf(tile) > -1) {
visit(n);
}
});
};
@ -111,7 +113,7 @@ function validate() {
} else {
message = reason;
}
return reason;
}