Don't use entity_t's next for linking static enitities.

This commit is contained in:
Bill Currie 2010-12-25 19:53:09 +09:00
parent 14480fd1b4
commit 90fcbefaff
3 changed files with 3 additions and 2 deletions

View file

@ -75,6 +75,7 @@ extern lightstyle_t r_lightstyle[MAX_LIGHTSTYLES];
typedef struct entity_s {
struct entity_s *next;
struct entity_s *unext; //FIXME this shouldn't be here. for qw demos
vec3_t origin;
vec3_t old_origin;

View file

@ -672,7 +672,7 @@ CL_Record (const char *argv1)
SZ_Clear (&buf);
}
// spawnstatic
for (ent = cl_static_entities; ent; ent = ent->next) {
for (ent = cl_static_entities; ent; ent = ent->unext) {
MSG_WriteByte (&buf, svc_spawnstatic);
for (j = 1; j < MAX_MODELS; j++)

View file

@ -929,7 +929,7 @@ CL_ParseStatic (void)
CL_Init_Entity (ent);
*cl_static_tail = ent;
cl_static_tail = &ent->next;
cl_static_tail = &ent->unext;
// copy it to the current state
ent->model = cl.model_precache[es.modelindex];