aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 929c01b..d335bba 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -1015,8 +1015,8 @@ class Client extends EventEmitter {
updateActionCommands(me.side);
for (let i = 1; i <= ini.emotions.number; i++) {
const emoteinfo = ini.emotions[i].split("#");
- const esfx = ini.soundn[i] ? ini.soundn[i] : "0";
- const esfxd = Number(ini.soundt[i] ? 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(),
@@ -1024,7 +1024,7 @@ class Client extends EventEmitter {
silent: emoteinfo[2].toLowerCase(),
zoom: emoteinfo[3],
sfx: esfx.toLowerCase(),
- sfxdelay: Number(esfxd),
+ sfxdelay: esfxd,
button_off: AO_HOST + `characters/${encodeURI(me.name.toLowerCase())}/emotions/button${i}_off.png`,
button_on: AO_HOST + `characters/${encodeURI(me.name.toLowerCase())}/emotions/button${i}_on.png`
};