Skip to content

Commit

Permalink
Properly quadruple checked 0.6 flag masks
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Dec 16, 2024
1 parent 8d0bdee commit 791e134
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/data/teeworlds.asm
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,15 @@ NET_MAX_PACKETHEADERSIZE equ NET_PACKETHEADERSIZE_CONNLESS
NET_MAX_PACKETSIZE equ 1400
NET_MAX_PAYLOAD equ NET_MAX_PACKETSIZE - NET_MAX_PACKETHEADERSIZE

PACKETFLAG_CONTROL equ 0b00_0001_00
PACKETFLAG_RESEND equ 0b00_0010_00
PACKETFLAG_CONTROL equ 0b00_0001_00
PACKETFLAG_RESEND equ 0b00_0010_00
PACKETFLAG_COMPRESSION equ 0b00_0100_00
PACKETFLAG_CONNLESS equ 0b00_1000_00
PACKETFLAG_CONNLESS equ 0b00_1000_00

PACKETFLAG6_CONTROL equ 0b0001_0000
PACKETFLAG6_CONNLESS equ 0b0010_0000
PACKETFLAG6_RESEND equ 0b0100_0000
PACKETFLAG6_COMPRESSION equ 0b1000_0000

CHUNKFLAG_VITAL equ 0b0100_0000
CHUNKFLAG_RESEND equ 0b1000_0000
Expand Down

0 comments on commit 791e134

Please sign in to comment.