Skip to content

Commit b3d7bcb

Browse files
authored
fix(parabolicease): Fix asserting on float inprecision in ParabolicEase::setEaseTimes() (#1854)
1 parent 6cfcc7b commit b3d7bcb

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
@@ -60,7 +60,7 @@ ParabolicEase::setEaseTimes(Real easeInTime, Real easeOutTime)
6060
}
6161

6262
if (m_in > m_out) {
63-
DEBUG_CRASH(("Ease-in and ease-out overlap (in = %g, out = %g)", 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)