Skip to content

Commit

Permalink
fix jshint warning about leading decimals confused for dot properties
Browse files Browse the repository at this point in the history
  • Loading branch information
orsi committed Sep 4, 2020
1 parent 371c657 commit c1f0e70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var AudioEngine = {
// Fill the buffer
var bufferData = buffer.getChannelData(0);
for (var i = 0; i < buffer.length / 2; i++) {
bufferData[i] = Math.sin(i * .05) / 4; // max .25 gain value
bufferData[i] = Math.sin(i * 0.05) / 4; // max .25 gain value
}
return buffer;
},
Expand Down
2 changes: 1 addition & 1 deletion script/space.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,6 @@ var Space = {
// lower audio as ship gets further into space
var progress = Space.altitude / 60;
var newVolume = 1.0 - progress;
AudioEngine.setBackgroundMusicVolume(newVolume, .3);
AudioEngine.setBackgroundMusicVolume(newVolume, 0.3);
}
};

0 comments on commit c1f0e70

Please sign in to comment.