mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-28 15:45:46 +03:00
Revert: sv_force_ent_intersection
This commit is contained in:
parent
2d85358e7e
commit
690296605f
@ -434,13 +434,7 @@ trace_t SV_PushEntity(edict_t *ent, vec_t *push)
|
|||||||
|
|
||||||
if (trace.fraction != 0.0f)
|
if (trace.fraction != 0.0f)
|
||||||
{
|
{
|
||||||
#ifdef REHLDS_FIXES
|
VectorCopy(trace.endpos, ent->v.origin);
|
||||||
// don't move in the direction, since this is a dead end
|
|
||||||
if (!trace.startsolid && !trace.allsolid)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
VectorCopy(trace.endpos, ent->v.origin);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SV_LinkEdict(ent, TRUE);
|
SV_LinkEdict(ent, TRUE);
|
||||||
|
@ -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
|
||||||
continue;
|
#ifdef REHLDS_FIXES
|
||||||
|
|| sv_force_ent_intersection.value
|
||||||
|
#endif
|
||||||
|
)
|
||||||
|
{
|
||||||
|
if (!SV_CheckSphereIntersection(touch, clip->start, clip->end))
|
||||||
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user