aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorCaleb Mabry <36182383+caleb-mabry@users.noreply.github.com>2024-09-29 13:28:51 -0400
committerCaleb Mabry <36182383+caleb-mabry@users.noreply.github.com>2024-09-29 13:28:51 -0400
commit7ef85f836cd75f668d4c555a88d791f35574b38d (patch)
tree8cfd3e95088747483a98745e6f96569ca64fd208 /webAO
parent98ce8ca67b27473cc5a00646a1752bbd2ce6347a (diff)
Dont clear the text box if the message is an additive
Diffstat (limited to 'webAO')
-rw-r--r--webAO/viewport/utils/handleICSpeaking.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/webAO/viewport/utils/handleICSpeaking.ts b/webAO/viewport/utils/handleICSpeaking.ts
index 4fe68d3..d5bd29f 100644
--- a/webAO/viewport/utils/handleICSpeaking.ts
+++ b/webAO/viewport/utils/handleICSpeaking.ts
@@ -78,7 +78,9 @@ export const handle_ic_speaking = async (playerChatMsg: ChatMsg) => {
: client.viewport.getChatmsg().nameplate!;
// Clear out the last message
- chatBoxInner.innerText = client.viewport.getTextNow();
+ if (!client.viewport.getChatmsg().additive) {
+ chatBoxInner.innerText = client.viewport.getTextNow();
+ }
nameBoxInner.innerText = displayname;
if (client.viewport.getLastCharacter() !== client.viewport.getChatmsg().name) {