Skip to content

Commit

Permalink
Work around E3M2 pillar collision issue
Browse files Browse the repository at this point in the history
Disable SV_TryUnstick when using pr_checkextension.

Fixes Shpoike/Quakespasm#50.
  • Loading branch information
Macil committed Dec 24, 2023
1 parent 7ecf1bf commit c9184a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Quake/sv_phys.c
Original file line number Diff line number Diff line change
Expand Up @@ -906,8 +906,9 @@ void SV_WalkMove (edict_t *ent)
clip = SV_FlyMove (ent, host_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)
{ // stepping up didn't make any progress
Expand Down

0 comments on commit c9184a6

Please sign in to comment.