- // distance and other factors
- // note: this origin check does not work properly on doors/lifts whose
- // origin is normally far away
- distance = VectorDistance(d->states[d->viewentnum].origin, s->origin);
- // if it is not very far from the player, update more often
- if (distance < 1024.0f)
- priority++;
- // certain changes are more noticable than others
- if (changedbits & E5_FULLUPDATE)
- priority++;
- else if (changedbits & (E5_ATTACHMENT | E5_MODEL | E5_FLAGS | E5_COLORMAP))
+ // distance from the player
+ if (VectorDistance(d->states[d->viewentnum].origin, s->origin) < 1024.0f)