From 1907b53c4c4f5dd00b0642bcf2e57b7747c83d19 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Mon, 18 Sep 2023 00:07:46 +0300 Subject: [PATCH] Fix CS2D flag missuse --- protocols/cs2d.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/protocols/cs2d.js b/protocols/cs2d.js index 84ae5ff..39da950 100644 --- a/protocols/cs2d.js +++ b/protocols/cs2d.js @@ -28,9 +28,9 @@ export default class cs2d extends Core { state.raw.numbots = reader.uint(1); const flags2 = reader.uint(1); state.raw.flags2 = flags2; - state.raw.recoil = this.readFlag(flags, 0); - state.raw.offScreenDamage = this.readFlag(flags, 1); - state.raw.hasDownloads = this.readFlag(flags, 2); + state.raw.recoil = this.readFlag(flags2, 0); + state.raw.offScreenDamage = this.readFlag(flags2, 1); + state.raw.hasDownloads = this.readFlag(flags2, 2); reader.skip(2); const players = reader.uint(1); for (let i = 0; i < players; i++) {