aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2021-09-07 19:43:59 +0200
committerstonedDiscord <Tukz@gmx.de>2021-09-07 19:43:59 +0200
commit3467fb7d85f63dd1804f8deb5bd8a4e3d4d16f15 (patch)
treef22141ccb7cd1f58327d792f2dc11cc8f32cec72
parent4fcd41014846ff3c9976362ab8d5473e519fef91 (diff)
fix blips lmao
-rw-r--r--webAO/client.js8
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;