Skip to content

Commit 57f630a

Browse files
committed
tweak: Still clamp epsilon delta
1 parent 85d244b commit 57f630a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ ParabolicEase::setEaseTimes(Real easeInTime, Real easeOutTime)
5959
m_out = clamp(m_out);
6060
}
6161

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

0 commit comments

Comments
 (0)