Skip to content

Commit

Permalink
PROTOCOL: Fix expanded case of FTE_PEXT_MODELDBL.
Browse files Browse the repository at this point in the history
Mirrors FTE.
  • Loading branch information
dsvensson committed Jan 16, 2025
1 parent 0bff460 commit 2946642
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sv_ents.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ void SV_WriteDelta(client_t* client, entity_state_t *from, entity_state_t *to, s
bits |= U_MODEL;
#ifdef FTE_PEXT_ENTITYDBL
if (to->modelindex > 255) {
if (to->modelindex > 512) {
bits &= ~U_MODEL;
}
evenmorebits |= U_FTE_MODELDBL;
required_extensions |= FTE_PEXT_MODELDBL;
}
Expand Down Expand Up @@ -264,6 +267,8 @@ void SV_WriteDelta(client_t* client, entity_state_t *from, entity_state_t *to, s

if (bits & U_MODEL)
MSG_WriteByte(msg, to->modelindex & 255);
else if (evenmorebits & U_FTE_MODELDBL)
MSG_WriteShort(msg, to->modelindex);
if (bits & U_FRAME)
MSG_WriteByte(msg, to->frame);
if (bits & U_COLORMAP)
Expand Down

0 comments on commit 2946642

Please sign in to comment.