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:
parent
2d85358e7e
commit
690296605f
@ -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);
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user