diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2018-05-22 22:48:08 -0500 |
|---|---|---|
| committer | oldmud0 <oldmud0@users.noreply.github.com> | 2018-05-22 22:48:08 -0500 |
| commit | 3408fc4af20b8c27b14dbc955a2253f72f6fd216 (patch) | |
| tree | 960d81d73e31e303a1a2004d70e2036cb21f5f30 /webAO | |
| parent | fc7555116a8152b2967c4ccd8f8afc49facbc16f (diff) | |
Play the correct objection sound
(with unknown consequences)
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/client.js | 2 |
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; |
