Skip to content

Commit

Permalink
Rely more on q2proto for entity delta shownet
Browse files Browse the repository at this point in the history
  • Loading branch information
res2k committed Nov 7, 2024
1 parent 0daedf8 commit 1940ba4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions src/client/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ static void CL_ParsePacketEntities(const server_frame_t *oldframe, server_frame_

if (svc_message.frame_entity_delta.remove) {
// the entity present in oldframe is not in the current frame
SHOWNET(2, "%3u:remove:%i\n", readcount, newnum);
if (oldnum != newnum) {
Com_DPrintf("U_REMOVE: oldnum != newnum\n");
}
Expand All @@ -214,11 +213,7 @@ static void CL_ParsePacketEntities(const server_frame_t *oldframe, server_frame_

if (oldnum == newnum) {
// delta from previous state
SHOWNET(2, "%3u:delta:%i ", readcount, newnum);
CL_ParseDeltaEntity(frame, newnum, oldstate, &svc_message.frame_entity_delta.entity_delta);
if (!svc_message.frame_entity_delta.entity_delta.delta_bits) {
SHOWNET(2, "\n");
}

oldindex++;

Expand All @@ -234,11 +229,7 @@ static void CL_ParsePacketEntities(const server_frame_t *oldframe, server_frame_

if (oldnum > newnum) {
// delta from baseline
SHOWNET(2, "%3u:baseline:%i ", readcount, newnum);
CL_ParseDeltaEntity(frame, newnum, &cl.baselines[newnum], &svc_message.frame_entity_delta.entity_delta);
if (!svc_message.frame_entity_delta.entity_delta.delta_bits) {
SHOWNET(2, "\n");
}
continue;
}
}
Expand Down

0 comments on commit 1940ba4

Please sign in to comment.