Replace 1e24 with 1e16 to avoid float overflow

This commit is contained in:
nillerusr
2021-10-13 20:01:24 +03:00
parent 977bac3205
commit cb04a1e451
22 changed files with 31 additions and 31 deletions
+2 -2
View File
@@ -770,8 +770,8 @@ void ClearNeighborData( CCoreDispInfo *pDisp )
void GetDispBox( CCoreDispInfo *pDisp, CDispBox &box )
{
// Calculate the bbox for this displacement.
Vector vMin( 1e24, 1e24, 1e24 );
Vector vMax( -1e24, -1e24, -1e24 );
Vector vMin( 1e16, 1e16, 1e16 );
Vector vMax( -1e16, -1e16, -1e16 );
for ( int iVert = 0; iVert < 4; ++iVert )
{
+1 -1
View File
@@ -311,7 +311,7 @@ CPositionInterpolator_Rope::CPositionInterpolator_Rope()
m_nSegments = 5;
for( int i=0; i < 2; i++ )
m_Delegate.m_CurEndPoints[i] = Vector( 1e24, 1e24, 1e24 );
m_Delegate.m_CurEndPoints[i] = Vector( 1e16, 1e16, 1e16 );
}
void CPositionInterpolator_Rope::Release()