Skip to content

Commit

Permalink
Update SoundscapeScriptParser
Browse files Browse the repository at this point in the history
- Reset depth if below 0
  • Loading branch information
selimnahimi committed Sep 29, 2023
1 parent ec1df28 commit fff1da4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/SoundscapeScriptParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ export default class SoundscapeScriptParser {

private assertDepthIsPositive() {
if (this.depth < 0) {
console.error("ERROR: Depth has gone below 0!");
console.warn("WARNING: Depth has gone below 0!");

this.depth = 0;
}
}
}

0 comments on commit fff1da4

Please sign in to comment.