2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-29 08:05:50 +03:00

Revert: sv_force_ent_intersection

This commit is contained in:
s1lent 2017-12-15 00:54:56 +07:00
parent 2d85358e7e
commit 690296605f
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C
2 changed files with 10 additions and 9 deletions

View File

@ -433,15 +433,9 @@ trace_t SV_PushEntity(edict_t *ent, vec_t *push)
trace_t trace = SV_Move(ent->v.origin, ent->v.mins, ent->v.maxs, end, moveType, ent, monsterClip); trace_t trace = SV_Move(ent->v.origin, ent->v.mins, ent->v.maxs, end, moveType, ent, monsterClip);
if (trace.fraction != 0.0f) if (trace.fraction != 0.0f)
{
#ifdef REHLDS_FIXES
// don't move in the direction, since this is a dead end
if (!trace.startsolid && !trace.allsolid)
#endif
{ {
VectorCopy(trace.endpos, ent->v.origin); VectorCopy(trace.endpos, ent->v.origin);
} }
}
SV_LinkEdict(ent, TRUE); SV_LinkEdict(ent, TRUE);

View File

@ -1221,8 +1221,15 @@ void SV_ClipToLinks(areanode_t *node, moveclip_t *clip)
|| clip->boxmaxs[2] < touch->v.absmin[2]) || clip->boxmaxs[2] < touch->v.absmin[2])
continue; continue;
if (touch->v.solid != SOLID_SLIDEBOX && !SV_CheckSphereIntersection(touch, clip->start, clip->end)) if (touch->v.solid != SOLID_SLIDEBOX
#ifdef REHLDS_FIXES
|| sv_force_ent_intersection.value
#endif
)
{
if (!SV_CheckSphereIntersection(touch, clip->start, clip->end))
continue; continue;
}
if (clip->passedict && clip->passedict->v.size[0] && !touch->v.size[0]) if (clip->passedict && clip->passedict->v.size[0] && !touch->v.size[0])
continue; // points never interact continue; // points never interact