We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf25eca commit ce42a5dCopy full SHA for ce42a5d
Entities/AHuman.cpp
@@ -1737,11 +1737,11 @@ void AHuman::UpdateCrouching() {
1737
1738
// Don't do it if we're already hitting, we're probably in a weird spot
1739
if (hitPosStart.m_Y - hitPos.m_Y <= 2.0F) {
1740
- hitPos.m_X = 0.0F;
+ hitPos.m_Y = 0.0F;
1741
}
1742
1743
if (hitPosPredictedStart.m_Y - hitPosPredicted.m_Y <= 2.0F) {
1744
- hitPosPredicted.m_X = 0.0F;
+ hitPosPredicted.m_Y = 0.0F;
1745
1746
1747
float headroom = m_pHead->GetPos().m_Y - std::max(hitPos.m_Y, hitPosPredicted.m_Y);
0 commit comments