aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-02-22 19:18:58 +0100
committerstonedDiscord <Tukz@gmx.de>2022-02-22 19:18:58 +0100
commit9848ea73e59c06281c65ef82cab294dee7d76a0e (patch)
tree6890529a1c24d683b02956301dd0cb4b1ad8291e /webAO
parentd39e2c92eded1738f8cb0c16e414da8a6de3548b (diff)
stop sfx from looping longer than the char is on screen
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/webAO/client.js b/webAO/client.js
index cfb0969..95e4458 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -2078,6 +2078,9 @@ async changeBackground(position) {
// stop updater
clearTimeout(this.updater);
+ // stop last sfx from looping any longer
+ this.sfxaudio.loop = false;
+
const fg = document.getElementById("client_fg");
const gamewindow = document.getElementById("client_gamewindow");
const waitingBox = document.getElementById("client_chatwaiting");