Skip to content

Commit c7037ed

Browse files
committed
Whoops, unfucked crouching
1 parent ae3a2a3 commit c7037ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Entities/AHuman.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,10 +1690,9 @@ void AHuman::OnNewMovePath()
16901690
//////////////////////////////////////////////////////////////////////////////////////////
16911691

16921692
void AHuman::UpdateWalkAngle(AHuman::Layer whichLayer) {
1693-
m_WalkPathOffset.Reset();
1694-
16951693
if (m_Controller.IsState(BODY_JUMP)) {
16961694
m_WalkAngle[whichLayer] = Matrix(c_QuarterPI * GetFlipFactor());
1695+
m_WalkPathOffset.Reset();
16971696
} else {
16981697
float rayLength = 15.0F;
16991698
Vector hipPos = m_Pos;
@@ -1736,6 +1735,8 @@ void AHuman::UpdateWalkAngle(AHuman::Layer whichLayer) {
17361735
// Adjust our X offset to try to keep our legs under our centre-of-mass
17371736
float predictedPosition = ((m_pHead->GetPos().m_X - m_Pos.m_X) * 0.15F) + m_Vel.m_X;
17381737
m_WalkPathOffset.m_X = predictedPosition;
1738+
} else {
1739+
m_WalkPathOffset.Reset();
17391740
}
17401741
}
17411742
}

0 commit comments

Comments
 (0)