Add audio
This commit is contained in:
parent
0101ef8d55
commit
62b8c74f57
26 changed files with 225 additions and 18 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue