mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Fix smoke trails that were broken by the efrags commit.
The efrags system's usage of ent->visframe clashes with that of CL_LinkPacketEntities. As the latter is rather bogus, and potentially visible entities are always inserted into the map (causing ent->efrag to be non-null), a null ent->efrag is a good indication that the entity is newly visible.
This commit is contained in:
parent
a4b97e9e2e
commit
cd660f6804
1 changed files with 1 additions and 2 deletions
|
@ -514,7 +514,7 @@ CL_LinkPacketEntities (void)
|
||||||
// set frame
|
// set frame
|
||||||
ent->frame = s1->frame;
|
ent->frame = s1->frame;
|
||||||
|
|
||||||
if (ent->visframe != r_framecount - 1) {
|
if (!ent->efrag) {
|
||||||
ent->lerpflags |= LERP_RESETMOVE|LERP_RESETANIM;
|
ent->lerpflags |= LERP_RESETMOVE|LERP_RESETANIM;
|
||||||
|
|
||||||
// No trail if new this frame
|
// No trail if new this frame
|
||||||
|
@ -530,7 +530,6 @@ CL_LinkPacketEntities (void)
|
||||||
}
|
}
|
||||||
if (!ent->efrag)
|
if (!ent->efrag)
|
||||||
R_AddEfrags (ent);
|
R_AddEfrags (ent);
|
||||||
ent->visframe = r_framecount;
|
|
||||||
|
|
||||||
if (model->flags & EF_ROTATE) { // rotate binary objects locally
|
if (model->flags & EF_ROTATE) { // rotate binary objects locally
|
||||||
ent->angles[0] = 0;
|
ent->angles[0] = 0;
|
||||||
|
|
Loading…
Reference in a new issue