mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
Don't use entity_t's next for linking static enitities.
This commit is contained in:
parent
14480fd1b4
commit
90fcbefaff
3 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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++)
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue