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:
Bill Currie 2010-12-03 20:30:01 +09:00
parent a4b97e9e2e
commit cd660f6804
1 changed files with 1 additions and 2 deletions

View File

@ -514,7 +514,7 @@ CL_LinkPacketEntities (void)
// set frame
ent->frame = s1->frame;
if (ent->visframe != r_framecount - 1) {
if (!ent->efrag) {
ent->lerpflags |= LERP_RESETMOVE|LERP_RESETANIM;
// No trail if new this frame
@ -530,7 +530,6 @@ CL_LinkPacketEntities (void)
}
if (!ent->efrag)
R_AddEfrags (ent);
ent->visframe = r_framecount;
if (model->flags & EF_ROTATE) { // rotate binary objects locally
ent->angles[0] = 0;