mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-14 23:58:10 +03:00
Update world.cpp (#985)
This commit is contained in:
parent
6f031901cf
commit
5ec8c29185
@ -1190,13 +1190,15 @@ void SV_ClipToLinks(areanode_t *node, moveclip_t *clip)
|
||||
if (touch->v.solid == SOLID_TRIGGER)
|
||||
Sys_Error("%s: Trigger in clipping list", __func__);
|
||||
|
||||
#ifndef REHLDS_OPT_PEDANTIC
|
||||
if (gNewDLLFunctions.pfnShouldCollide && !gNewDLLFunctions.pfnShouldCollide(touch, clip->passedict))
|
||||
#ifdef REHLDS_FIXES
|
||||
// https://github.com/dreamstalker/rehlds/issues/46
|
||||
continue;
|
||||
#else
|
||||
return;
|
||||
#endif
|
||||
#endif // REHLDS_FIXES
|
||||
#endif // REHLDS_OPT_PEDANTIC
|
||||
|
||||
// monsterclip filter
|
||||
if (touch->v.solid == SOLID_BSP)
|
||||
@ -1248,6 +1250,16 @@ void SV_ClipToLinks(areanode_t *node, moveclip_t *clip)
|
||||
continue; // don't clip against owner
|
||||
}
|
||||
|
||||
#ifdef REHLDS_OPT_PEDANTIC
|
||||
if (gNewDLLFunctions.pfnShouldCollide && !gNewDLLFunctions.pfnShouldCollide(touch, clip->passedict))
|
||||
#ifdef REHLDS_FIXES
|
||||
// https://github.com/dreamstalker/rehlds/issues/46
|
||||
continue;
|
||||
#else
|
||||
return;
|
||||
#endif // REHLDS_FIXES
|
||||
#endif // REHLDS_OPT_PEDANTIC
|
||||
|
||||
trace_t trace;
|
||||
if (touch->v.flags & FL_MONSTER)
|
||||
trace = SV_ClipMoveToEntity(touch, clip->start, clip->mins2, clip->maxs2, clip->end);
|
||||
|
Loading…
x
Reference in New Issue
Block a user