aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets/handlers/handleMS.ts
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2023-04-10 20:58:32 +0200
committerstonedDiscord <Tukz@gmx.de>2023-04-10 20:58:32 +0200
commit96ef49d7ba8d9bd866d13c5fea72d66518c1d58b (patch)
tree1613e3e5e587027747b96beb93b2fde375382afb /webAO/packets/handlers/handleMS.ts
parentdb1b7352f3c7233b98d47b4fd6617fe07cdab618 (diff)
parent4ea19f1fa4267f4c3831b17016f3da0b7c9c14eb (diff)
Merge branch 'master' into packet-handler
Diffstat (limited to 'webAO/packets/handlers/handleMS.ts')
-rw-r--r--webAO/packets/handlers/handleMS.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/webAO/packets/handlers/handleMS.ts b/webAO/packets/handlers/handleMS.ts
index c30e777..3be4eef 100644
--- a/webAO/packets/handlers/handleMS.ts
+++ b/webAO/packets/handlers/handleMS.ts
@@ -76,7 +76,7 @@ export const handleMS = (args: string[]) => {
speed: UPDATE_INTERVAL,
};
- if (extrafeatures.includes("cccc_ic_support")) {
+ if (args.length>16) {
const extra_cccc = {
showname: prepChat(args[16]),
other_charid: Number(args[17]),
@@ -89,7 +89,7 @@ export const handleMS = (args: string[]) => {
};
chatmsg = Object.assign(extra_cccc, chatmsg);
- if (extrafeatures.includes("looping_sfx")) {
+ if (args.length>24) {
const extra_27 = {
looping_sfx: Number(args[24]),
screenshake: Number(args[25]),
@@ -99,7 +99,7 @@ export const handleMS = (args: string[]) => {
};
chatmsg = Object.assign(extra_27, chatmsg);
- if (extrafeatures.includes("effects")) {
+ if (args.length>29) {
const extra_28 = {
additive: Number(args[29]),
effects: args[30].split("|"),