diff options
| author | stonedDiscord <Tukz@gmx.de> | 2021-09-07 19:43:59 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2021-09-07 19:43:59 +0200 |
| commit | 3467fb7d85f63dd1804f8deb5bd8a4e3d4d16f15 (patch) | |
| tree | f22141ccb7cd1f58327d792f2dc11cc8f32cec72 | |
| parent | 4fcd41014846ff3c9976362ab8d5473e519fef91 (diff) | |
fix blips lmao
| -rw-r--r-- | webAO/client.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js index ec78007..9b17528 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1641,8 +1641,12 @@ class Viewport { // Allocate multiple blip audio channels to make blips less jittery - this.blipChannels = new Array(6); - this.blipChannels.fill(new Audio(AO_HOST + "sounds/general/sfx-blipmale.opus")) + this.blipChannels = new Array( new Audio(AO_HOST + "sounds/general/sfx-blipmale.opus"), + new Audio(AO_HOST + "sounds/general/sfx-blipmale.opus"), + new Audio(AO_HOST + "sounds/general/sfx-blipmale.opus"), + new Audio(AO_HOST + "sounds/general/sfx-blipmale.opus"), + new Audio(AO_HOST + "sounds/general/sfx-blipmale.opus"), + new Audio(AO_HOST + "sounds/general/sfx-blipmale.opus")); this.blipChannels.forEach(channel => channel.volume = 0.5); this.currentBlipChannel = 0; |
