Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit f7fee99

Browse files
committed
fix bad commit
1 parent 15546f5 commit f7fee99

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Entities/AHuman.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,7 +1802,7 @@ bool AHuman::UpdateMovePath()
18021802
void AHuman::UpdateWalkAngle(AHuman::Layer whichLayer) {
18031803
if (m_Controller.IsState(BODY_JUMP)) {
18041804
m_WalkAngle[whichLayer] = Matrix(c_QuarterPI * GetFlipFactor());
1805-
} else if (m_MaintainUpright) {
1805+
} else {
18061806
// Cast rays to calculate the approximate shape of terrain.
18071807
int rayCount = 4;
18081808
float rayLength = 10.0F;
@@ -1828,8 +1828,6 @@ void AHuman::UpdateWalkAngle(AHuman::Layer whichLayer) {
18281828
trace.RadRotate(traceRotation);
18291829
}
18301830
m_WalkAngle[whichLayer] = Matrix((terrainVector * GetFlipFactor()).GetAbsRadAngle() + c_HalfPI * GetFlipFactor());
1831-
} else {
1832-
m_WalkAngle[whichLayer] = m_Rotation;
18331831
}
18341832
}
18351833

0 commit comments

Comments
 (0)