mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 08:40:39 +00:00
cl_visedict re-write. lerping works MUCH better now, and lerping of torches
should be possible. client should also be microscopicly faster.
This commit is contained in:
parent
3669d78d1b
commit
dd3ea544ce
13 changed files with 202 additions and 194 deletions
|
@ -65,7 +65,7 @@ R_AddFire (vec3_t start, vec3_t end, entity_t *ent)
|
|||
|
||||
VectorSubtract (end, start, vec);
|
||||
len = VectorNormalize (vec);
|
||||
key = ent - cl_visedicts + 1;
|
||||
key = ent->keynum;
|
||||
|
||||
if (len) {
|
||||
f = R_AllocFire (key);
|
||||
|
@ -76,7 +76,7 @@ R_AddFire (vec3_t start, vec3_t end, entity_t *ent)
|
|||
f->decay = -1;
|
||||
f->color = r_firecolor;
|
||||
|
||||
dl = CL_AllocDlight (key);
|
||||
dl = CL_AllocDlight (-key);
|
||||
VectorCopy (end, dl->origin);
|
||||
dl->radius = 200;
|
||||
dl->die = cl.time + 0.5;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue