From 3408fc4af20b8c27b14dbc955a2253f72f6fd216 Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Tue, 22 May 2018 22:48:08 -0500 Subject: Play the correct objection sound (with unknown consequences) --- webAO/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webAO/client.js b/webAO/client.js index 36817c5..5c2332f 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -641,7 +641,7 @@ class Viewport { let shout = shouts[this.chatmsg.objection]; if (typeof shout !== "undefined") { document.getElementById("client_char").src = AO_HOST + "misc/" + shout + ".gif"; - this.chatmsg.sound = "sfx-" + shout; + (new Audio(`${AO_HOST}/characters/${this.chatmsg.name}/${shout}.wav`)).play(); this.shoutTimer = 800; } else { this.shoutTimer = 0; -- cgit