diff options
| author | Caleb <caleb.mabry.15@cnu.edu> | 2022-09-11 15:42:52 -0400 |
|---|---|---|
| committer | Caleb <caleb.mabry.15@cnu.edu> | 2022-09-11 15:42:52 -0400 |
| commit | 383991dd82af6bd867ef29af37fb694d64c28450 (patch) | |
| tree | 6a153e9b1eaad5025338acb1ffe3ac67c784496d | |
| parent | 766bef212c09dc85a7afda085cbb9690f985ed8f (diff) | |
Typechecking changed
| -rw-r--r-- | webAO/packets/handlers/handleMS.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/webAO/packets/handlers/handleMS.ts b/webAO/packets/handlers/handleMS.ts index 1256900..22bbab6 100644 --- a/webAO/packets/handlers/handleMS.ts +++ b/webAO/packets/handlers/handleMS.ts @@ -2,7 +2,7 @@ import { client, extrafeatures, UPDATE_INTERVAL } from "../../client"; import { handleCharacterInfo } from "../../client/handleCharacterInfo"; import { resetICParams } from "../../client/resetICParams"; import { prepChat, safeTags } from "../../encoding"; - +import { handle_ic_speaking } from '../../viewport/utils/handleICSpeaking' /** * Handles an in-character chat message. * @param {*} args packet arguments @@ -55,7 +55,7 @@ export const handleMS = (args: string[]) => { if (char_muted === false) { let chatmsg = { - deskmod: safeTags(args[1]).toLowerCase(), + deskmod: Number(safeTags(args[1]).toLowerCase()), preanim: safeTags(args[2]).toLowerCase(), // get preanim nameplate: msg_nameplate, chatbox: char_chatbox, @@ -69,7 +69,7 @@ export const handleMS = (args: string[]) => { charid: char_id, snddelay: Number(args[10]), objection: Number(args[11]), - evidence: safeTags(args[12]), + evidence: Number(safeTags(args[12])), flip: Number(args[13]), flash: Number(args[14]), color: Number(args[15]), @@ -158,7 +158,8 @@ export const handleMS = (args: string[]) => { if (chatmsg.charid === client.charID) { resetICParams(); } - client.viewport.handle_ic_speaking(chatmsg); // no await + + handle_ic_speaking(chatmsg); // no await } } }
\ No newline at end of file |
