aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2021-09-24 16:12:12 +0200
committerstonedDiscord <Tukz@gmx.de>2021-09-24 16:12:12 +0200
commit742856f3c8ab0e7bc70b2f21fe305c6b524414bb (patch)
tree26eb953d415fbbce59f4f535083e424f321d0282 /webAO
parent60a9867a0551753101f5b4d692fa5a9ea77aba2a (diff)
don't replace the preanim name with -
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 01413a8..34e5718 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -2420,19 +2420,22 @@ export function onEnter(event) {
let sfxname = "0";
let sfxdelay = 0;
- let preanim = "-";
+ let emote_mod = myemo.zoom;
if (document.getElementById("sendsfx").checked) {
sfxname = myemo.sfx;
sfxdelay = myemo.sfxdelay;
}
+ // not to overwrite a 5 from the ini or anything else
if (document.getElementById("sendpreanim").checked) {
- preanim = myemo.preanim;
- }
+ if (emote_mod === 0)
+ emote_mod = 1;
+ } else if (emote_mod === 1)
+ emote_mod = 0;
- client.sendIC("chat", preanim, mychar.name, myemo.emote,
+ client.sendIC("chat", myemo.preanim, mychar.name, myemo.emote,
text, myrole,
- sfxname, myemo.zoom, sfxdelay, selectedShout, evi, flip,
+ sfxname, emote_mod, sfxdelay, selectedShout, evi, flip,
flash, color, showname, pairchar, pairoffset, pairyoffset, noninterrupting_preanim, looping_sfx, screenshake, "-", "-", "-", additive, effect);
}
}