diff options
| author | sD <stoned@derpymail.org> | 2020-03-17 19:40:18 +0100 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2020-03-17 19:40:18 +0100 |
| commit | e319bbaa0aa7ef9fdfbccadce5cf48aa782ea5d4 (patch) | |
| tree | 934f9eb95c3a064a8a3d5ff30b026f65a32f8dff | |
| parent | ffae14df5298395c1ffef835c4ffaf404d8fecf0 (diff) | |
fix preanims
| -rw-r--r-- | webAO/client.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/webAO/client.js b/webAO/client.js index 1e86938..250dfab 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1174,7 +1174,7 @@ class Viewport { "content": "", "objection": 0, "sound": "", - "startpreanim": false, + "startpreanim": true, "startspeaking": false, "side": null, "color": 0, @@ -1547,6 +1547,7 @@ async changeBackground(position) { this.shoutTimer = 0; } + this.chatmsg.startpreanim = true; switch (this.chatmsg.type) { // case 0: // normal emote, no preanim @@ -1559,15 +1560,13 @@ async changeBackground(position) { // If preanim existed then determine the length delay = await this.getAnimLength(`${AO_HOST}characters/${encodeURI(chatmsg.name.toLowerCase())}/${encodeURI(chatmsg.preanim)}.gif`); chatmsg.preanimdelay = delay; - this.chatmsg.startpreanim = true; this.chatmsg.startspeaking = false; break; // case 5: // zoom default: // due to a retarded client bug, we need to strip the sfx from the MS, if the preanim isn't playing - chatmsg.sound = ""; - this.chatmsg.startpreanim = false; + chatmsg.sound = ""; this.chatmsg.startspeaking = true; break; } |
