Skip to content

Commit 85d244b

Browse files
committed
fix: Parabolic ease floating point intolerance
1 parent 6cfcc7b commit 85d244b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GeneralsMD/Code/GameEngine/Source/GameClient/ParabolicEase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ ParabolicEase::setEaseTimes(Real easeInTime, Real easeOutTime)
5959
m_out = clamp(m_out);
6060
}
6161

62-
if (m_in > m_out) {
62+
if (m_in > m_out + FLT_EPSILON) {
6363
DEBUG_CRASH(("Ease-in and ease-out overlap (in = %g, out = %g)", m_in, m_out));
6464
m_in = m_out;
6565
}

0 commit comments

Comments
 (0)