Skip to content

Commit ce42a5d

Browse files
committed
Actually fixed it this time...
1 parent bf25eca commit ce42a5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Entities/AHuman.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,11 +1737,11 @@ void AHuman::UpdateCrouching() {
17371737

17381738
// Don't do it if we're already hitting, we're probably in a weird spot
17391739
if (hitPosStart.m_Y - hitPos.m_Y <= 2.0F) {
1740-
hitPos.m_X = 0.0F;
1740+
hitPos.m_Y = 0.0F;
17411741
}
17421742

17431743
if (hitPosPredictedStart.m_Y - hitPosPredicted.m_Y <= 2.0F) {
1744-
hitPosPredicted.m_X = 0.0F;
1744+
hitPosPredicted.m_Y = 0.0F;
17451745
}
17461746

17471747
float headroom = m_pHead->GetPos().m_Y - std::max(hitPos.m_Y, hitPosPredicted.m_Y);

0 commit comments

Comments
 (0)