else
{
traceline(view_origin, ent.origin, MOVE_NORMAL, ent);
- if(trace_fraction < 1 && trace_networkentity != ent.sv_entnum)
+ if(trace_fraction < 1 && (trace_networkentity != ent.sv_entnum && trace_ent.entnum != ent.sv_entnum))
hit = 0;
else
hit = 1;
}
// handle tag fading
- float overlap, onscreen, crosshairdistance;
+ float overlap = FALSE, onscreen, crosshairdistance;
vector o, eo;
o = project_3d_to_2d(ent.origin);
e.sameteam = 0;
}
- e.origin = getplayerorigin(i);
+ setorigin(e, getplayerorigin(i));
if(e.origin == GETPLAYERORIGIN_ERROR)
continue;