Work around E3M2 pillar collision issue

Disable SV_TryUnstick when using pr_checkextension.

Fixes https://github.com/Shpoike/Quakespasm/issues/50.
This commit is contained in:
Chris Cowan 2023-02-10 03:01:25 -08:00
parent e9822ae936
commit 0c240a24b2

View file

@ -1144,8 +1144,9 @@ void SV_WalkMove (edict_t *ent)
clip = SV_FlyMove (ent, qcvm->frametime, &steptrace);
// check for stuckness, possibly due to the limited precision of floats
// in the clipping hulls
if (clip)
// in the clipping hulls. Disable when using pr_checkextension to avoid
// https://github.com/Shpoike/Quakespasm/issues/50.
if (clip && !pr_checkextension.value)
{
if ( fabs(oldorg[1] - ent->v.origin[1]) < 0.03125
&& fabs(oldorg[0] - ent->v.origin[0]) < 0.03125 )