Skip to content

Commit

Permalink
Use MSG_ReadWord() where appropriate.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullernet authored and Paril committed Dec 10, 2021
1 parent 342ef77 commit 11b2043
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ static void CL_ParseFrame(int extrabits)
SHOWNET(2, "%3"PRIz":playerinfo\n", msg_read.readcount - 1);

// parse playerstate
bits = MSG_ReadShort();
bits = MSG_ReadWord();
if (cls.serverProtocol > PROTOCOL_VERSION_DEFAULT) {
MSG_ParseDeltaPlayerstate_Enhanced(from, &frame.ps, bits, extraflags);
#ifdef _DEBUG
Expand Down
2 changes: 1 addition & 1 deletion src/common/net/chan.c
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ static bool NetchanNew_Process(netchan_t *netchan)
fragment_offset = 0;
more_fragments = false;
if (fragmented_message) {
fragment_offset = MSG_ReadShort();
fragment_offset = MSG_ReadWord();
more_fragments = fragment_offset >> 15;
fragment_offset &= 0x7FFF;
}
Expand Down
2 changes: 1 addition & 1 deletion src/server/mvd/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ static void MVD_ParsePacketPlayers(mvd_t *mvd)

player = &mvd->players[number];

bits = MSG_ReadShort();
bits = MSG_ReadWord();

#ifdef _DEBUG
if (mvd_shownet->integer > 2) {
Expand Down

0 comments on commit 11b2043

Please sign in to comment.