Skip to content

Commit

Permalink
Fix KozGit#373 from Ionwerks/Doom3Quest@56e6d43. Many thanks to Inowerks
Browse files Browse the repository at this point in the history
  • Loading branch information
NPi2Loup committed Nov 25, 2021
1 parent 8f1f51d commit 374875c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions neo/d3xp/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11052,6 +11052,13 @@ void idPlayer::Move()
physicsObj.SetAxis( origPhysAxis ); // make sure motion move doesnt change the axis

movedRemainder = (newBodyOrigin - movedBodyOrigin);
//#373 fix from Ionwerks/Doom3Quest@56e6d43
// Defunkt...
// NB: Not clear to me what the purpose of leanOffset is, something to do with pushing against walls. The related blanking (to prevent looking through walls)
// doesn't appear to work as far as I can tell. Whatever the intention the vertical component frequently ends up with a stuck offset when traversing stairs.
// Easiest work-around for now would seem to be zeroing any vertical value preserving the intended functionality (whatever it is) in the horizontal only.
movedRemainder[2] = 0.00f;
// ...Defunkt

if ( movedRemainder.Length() > commonVr->motionMoveDelta.Length() * 0.25f )
{
Expand Down

0 comments on commit 374875c

Please sign in to comment.