Skip to content

Commit

Permalink
SV_USER: Fix incorrect baseline entity lists being sent
Browse files Browse the repository at this point in the history
  • Loading branch information
meag committed Mar 22, 2017
1 parent c113a05 commit 1ba56c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sv_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ static void Cmd_PreSpawn_f (void)
{
unsigned int buf;
unsigned int check;
int i;
int i, j;

if (sv_client->state != cs_connected)
{
Expand Down Expand Up @@ -593,9 +593,9 @@ static void Cmd_PreSpawn_f (void)
MSG_WriteByte(&sv_client->netchan.message, svent->e->baseline.frame);
MSG_WriteByte(&sv_client->netchan.message, svent->e->baseline.colormap);
MSG_WriteByte(&sv_client->netchan.message, svent->e->baseline.skinnum);
for (i = 0; i < 3; i++) {
MSG_WriteCoord(&sv_client->netchan.message, svent->e->baseline.origin[i]);
MSG_WriteAngle(&sv_client->netchan.message, svent->e->baseline.angles[i]);
for (j = 0; j < 3; j++) {
MSG_WriteCoord(&sv_client->netchan.message, svent->e->baseline.origin[j]);
MSG_WriteAngle(&sv_client->netchan.message, svent->e->baseline.angles[j]);
}
}
++buf;
Expand Down

0 comments on commit 1ba56c0

Please sign in to comment.