fix rocket trails in demos

This commit is contained in:
Bill Currie 2001-12-02 00:18:09 +00:00
parent 13d67a4c67
commit 5b13c1a07d

View file

@ -72,6 +72,9 @@ entity_t cl_flag_ents[MAX_CLIENTS];
entity_t cl_projectiles[MAX_PROJECTILES]; entity_t cl_projectiles[MAX_PROJECTILES];
entity_t cl_entities[MAX_EDICTS]; entity_t cl_entities[MAX_EDICTS];
int cl_last_sequence;
int cl_entity_sequence[MAX_EDICTS];
struct { struct {
model_t *model; model_t *model;
int skinnum; int skinnum;
@ -442,10 +445,12 @@ CL_ParsePacketEntities (qboolean delta)
if (newindex >= MAX_PACKET_ENTITIES) if (newindex >= MAX_PACKET_ENTITIES)
Host_Error ("CL_ParsePacketEntities: newindex == " Host_Error ("CL_ParsePacketEntities: newindex == "
"MAX_PACKET_ENTITIES"); "MAX_PACKET_ENTITIES");
if (cl_entity_sequence[newnum] != cl_last_sequence)
CL_EntFromBaseline (&cl_baselines[newnum], &cl_entities[newnum], CL_EntFromBaseline (&cl_baselines[newnum], &cl_entities[newnum],
newnum); newnum);
CL_ParseDelta (&cl_baselines[newnum], &newp->entities[newindex], CL_ParseDelta (&cl_baselines[newnum], &newp->entities[newindex],
&cl_entities[newnum], word, 1); &cl_entities[newnum], word, 1);
cl_entity_sequence[newnum] = cls.netchan.incoming_sequence;
newindex++; newindex++;
continue; continue;
} }
@ -463,12 +468,14 @@ CL_ParsePacketEntities (qboolean delta)
CL_ParseDelta (&oldp->entities[oldindex], CL_ParseDelta (&oldp->entities[oldindex],
&newp->entities[newindex], &cl_entities[newnum], &newp->entities[newindex], &cl_entities[newnum],
word, 1); word, 1);
cl_entity_sequence[newnum] = cls.netchan.incoming_sequence;
newindex++; newindex++;
oldindex++; oldindex++;
} }
} }
newp->num_entities = newindex; newp->num_entities = newindex;
cl_last_sequence = cls.netchan.incoming_sequence;
} }
void void