mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 06:42:26 +00:00
gl client now builds again (thanks knghtbrd;)
This commit is contained in:
parent
1246b26046
commit
70b3327d77
5 changed files with 15 additions and 12 deletions
|
@ -296,12 +296,14 @@ void R_RotateForEntity (entity_t *e);
|
|||
// gl_rlight.c
|
||||
//
|
||||
|
||||
extern float bubble_sintable[17], bubble_costable[17];
|
||||
extern float v_blend[4];
|
||||
|
||||
void R_MarkLights (dlight_t *light, int bit, mnode_t *node);
|
||||
void R_AnimateLight (void);
|
||||
void R_RenderDlights (void);
|
||||
int R_LightPoint (vec3_t p);
|
||||
void AddLightBlend (float, float, float, float);
|
||||
|
||||
//
|
||||
// gl_refrag.c
|
||||
|
|
|
@ -136,7 +136,7 @@ void R_NewMap (void);
|
|||
|
||||
void R_ParseParticleEffect (void);
|
||||
void R_RunParticleEffect (vec3_t org, vec3_t dir, int color, int count);
|
||||
void R_RocketTrail (vec3_t start, vec3_t end, int type);
|
||||
void R_RocketTrail (vec3_t start, vec3_t end, int type, entity_t *ent);
|
||||
|
||||
void R_EntityParticles (entity_t *ent);
|
||||
void R_BlobExplosion (vec3_t org);
|
||||
|
|
|
@ -557,24 +557,24 @@ void CL_LinkPacketEntities (void)
|
|||
}
|
||||
if (model->flags & EF_ROCKET)
|
||||
{
|
||||
R_RocketTrail (old_origin, ent->origin, 0);
|
||||
R_RocketTrail (old_origin, ent->origin, 0, ent);
|
||||
dl = CL_AllocDlight (s1->number);
|
||||
VectorCopy (ent->origin, dl->origin);
|
||||
dl->radius = 200;
|
||||
dl->die = cl.time + 0.1;
|
||||
}
|
||||
else if (model->flags & EF_GRENADE)
|
||||
R_RocketTrail (old_origin, ent->origin, 1);
|
||||
R_RocketTrail (old_origin, ent->origin, 1, ent);
|
||||
else if (model->flags & EF_GIB)
|
||||
R_RocketTrail (old_origin, ent->origin, 2);
|
||||
R_RocketTrail (old_origin, ent->origin, 2, ent);
|
||||
else if (model->flags & EF_ZOMGIB)
|
||||
R_RocketTrail (old_origin, ent->origin, 4);
|
||||
R_RocketTrail (old_origin, ent->origin, 4, ent);
|
||||
else if (model->flags & EF_TRACER)
|
||||
R_RocketTrail (old_origin, ent->origin, 3);
|
||||
R_RocketTrail (old_origin, ent->origin, 3, ent);
|
||||
else if (model->flags & EF_TRACER2)
|
||||
R_RocketTrail (old_origin, ent->origin, 5);
|
||||
R_RocketTrail (old_origin, ent->origin, 5, ent);
|
||||
else if (model->flags & EF_TRACER3)
|
||||
R_RocketTrail (old_origin, ent->origin, 6);
|
||||
R_RocketTrail (old_origin, ent->origin, 6, ent);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ int r_numparticles;
|
|||
|
||||
vec3_t r_pright, r_pup, r_ppn;
|
||||
|
||||
fire_t r_firs[MAX_FIRES];
|
||||
fire_t r_fires[MAX_FIRES];
|
||||
extern cvar_t *gl_fires;
|
||||
|
||||
/*
|
||||
===============
|
||||
|
@ -381,7 +382,7 @@ void R_TeleportSplash (vec3_t org)
|
|||
}
|
||||
}
|
||||
|
||||
void R_RocketTrail (vec3_t start, vec3_t end, int type)
|
||||
void R_RocketTrail (vec3_t start, vec3_t end, int type, entity_t *ent)
|
||||
{
|
||||
vec3_t vec;
|
||||
float len;
|
||||
|
@ -653,7 +654,7 @@ R_AddFire (vec3_t start, vec3_t end, entity_t *ent)
|
|||
|
||||
VectorSubtract (end, start, vec);
|
||||
len = VectorNormalize (vec);
|
||||
key = ent-cl_entities+1;
|
||||
key = ent-cl_visedicts+1;
|
||||
|
||||
if (len)
|
||||
{
|
||||
|
|
|
@ -360,7 +360,7 @@ void R_TeleportSplash (vec3_t org)
|
|||
}
|
||||
}
|
||||
|
||||
void R_RocketTrail (vec3_t start, vec3_t end, int type)
|
||||
void R_RocketTrail (vec3_t start, vec3_t end, int type, entity_t *ent)
|
||||
{
|
||||
vec3_t vec;
|
||||
float len;
|
||||
|
|
Loading…
Reference in a new issue