aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2018-05-22 22:48:08 -0500
committeroldmud0 <oldmud0@users.noreply.github.com>2018-05-22 22:48:08 -0500
commit3408fc4af20b8c27b14dbc955a2253f72f6fd216 (patch)
tree960d81d73e31e303a1a2004d70e2036cb21f5f30 /webAO
parentfc7555116a8152b2967c4ccd8f8afc49facbc16f (diff)
Play the correct objection sound
(with unknown consequences)
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.js2
1 files changed, 1 insertions, 1 deletions
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;