From 0a66c6ed8c88a6e9a58453cdc6293a3a14891020 Mon Sep 17 00:00:00 2001 From: sD Date: Tue, 7 Apr 2020 18:00:47 +0200 Subject: move blips to the end like in client --- webAO/client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'webAO/client.js') diff --git a/webAO/client.js b/webAO/client.js index ead9d0c..632bf69 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1511,7 +1511,6 @@ async changeBackground(position) { */ async say(chatmsg) { this.chatmsg = chatmsg; - this.blipChannels.forEach(channel => channel.src = `${AO_HOST}sounds/general/sfx-blip${encodeURI(this.chatmsg.blips.toLowerCase())}.wav`); this.textnow = ""; this.sfxplayed = 0; this.textTimer = 0; @@ -1651,6 +1650,8 @@ async changeBackground(position) { } } + this.blipChannels.forEach(channel => channel.src = `${AO_HOST}sounds/general/sfx-blip${encodeURI(this.chatmsg.blips.toLowerCase())}.wav`); + this.tick(); } -- cgit