// applies the view_ofs[2], so we have to only send the fractional part
// of view_ofs[2], undoing what the client will redo)
VectorCopy (testeye, testorigin);
- testorigin[2] -= (float) ((int)(clent->v.view_ofs[2]) & 255);
+ e = (int) clent->v.view_ofs[2] & 255;
+ if (e >= 128)
+ e -= 256;
+ testorigin[2] -= (float) e;
EntityFrame_Clear(&entityframe, testorigin);
culled_pvs = 0;
break;
VectorCopy(origin, s->origin);
VectorCopy(angles, s->angles);
+ if (ent->v.colormap >= 1024)
+ flags |= RENDER_COLORMAPPED;
s->colormap = ent->v.colormap;
s->skin = ent->v.skin;
s->frame = ent->v.frame;