diff options
| author | sD <stoned@derpymail.org> | 2020-02-13 17:05:58 +0100 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2020-02-13 17:05:58 +0100 |
| commit | e2f0467d0c0cb34af53e9384a27f1cc84ec48eb6 (patch) | |
| tree | 3f73cbaada40573cf4cbf9253634e4a3d3bdad29 | |
| parent | 9a153efc5b550145eeab095e37c4c4ff806284fd (diff) | |
NaN is not a valid sfx delay
| -rw-r--r-- | webAO/client.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js index 3e30e03..f51f4f6 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1119,8 +1119,8 @@ class Client extends EventEmitter { for (let i = 1; i <= ini.emotions.number; i++) { try { const emoteinfo = ini.emotions[i].split("#"); - const esfx = ini.soundn[i] || "0"; - const esfxd = Number(ini.soundt[i] || 0); + const esfx = ini.soundn[i] || 0; + const esfxd = Number(ini.soundt[i]) || 0; // Make sure the asset server is case insensitive, or that everything on it is lowercase emotes[i] = { desc: emoteinfo[0].toLowerCase(), |
