File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1690,6 +1690,8 @@ void AHuman::OnNewMovePath()
1690
1690
// ////////////////////////////////////////////////////////////////////////////////////////
1691
1691
1692
1692
void AHuman::UpdateWalkAngle (AHuman::Layer whichLayer) {
1693
+ m_WalkPathOffset.Reset ();
1694
+
1693
1695
if (m_Controller.IsState (BODY_JUMP)) {
1694
1696
m_WalkAngle[whichLayer] = Matrix (c_QuarterPI * GetFlipFactor ());
1695
1697
} else {
@@ -1734,8 +1736,6 @@ void AHuman::UpdateWalkAngle(AHuman::Layer whichLayer) {
1734
1736
// Adjust our X offset to try to keep our legs under our centre-of-mass
1735
1737
float predictedPosition = ((m_pHead->GetPos ().m_X - m_Pos.m_X ) * 0 .15F ) + m_Vel.m_X ;
1736
1738
m_WalkPathOffset.m_X = predictedPosition;
1737
- } else {
1738
- m_WalkPathOffset.Reset ();
1739
1739
}
1740
1740
}
1741
1741
}
You can’t perform that action at this time.
0 commit comments