aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorBumaire <194399581+Bruma1re@users.noreply.github.com>2025-10-25 23:56:03 +0100
committerGitHub <noreply@github.com>2025-10-25 23:56:03 +0100
commit99d6cd425e9f98f25e4c1929e7123ad6f9adad4b (patch)
tree6d16eac313a2d33f1dc4935ef0bcd0cc98c23866 /webAO
parent11bbece1877701129eb5ede476161c1095557905 (diff)
IC: treat empty preanim string as no preanim
When an emote is defined with empty preanimation string, such as
EmoteName##emote#, and a user selects "Preanim," WebAO tries to look up
a file with an empty name instead of disabling preanimation. This commit fixes this, matching AO2 client behavior and not requiring
character makers to put a magic "-" preanimation in char.ini.
Diffstat (limited to 'webAO')
-rw-r--r--webAO/viewport/utils/handleICSpeaking.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/webAO/viewport/utils/handleICSpeaking.ts b/webAO/viewport/utils/handleICSpeaking.ts
index bae4986..b037e69 100644
--- a/webAO/viewport/utils/handleICSpeaking.ts
+++ b/webAO/viewport/utils/handleICSpeaking.ts
@@ -168,7 +168,8 @@ export const handle_ic_speaking = async (playerChatMsg: ChatMsg) => {
if (
client.viewport.getChatmsg().type === 1 &&
- client.viewport.getChatmsg().preanim !== "-"
+ client.viewport.getChatmsg().preanim !== "-" &&
+ client.viewport.getChatmsg().preanim !== ""
) {
//we have a preanim
chatContainerBox.style.opacity = "0";