mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-04 18:09:53 +03:00
Replace 1e24 with 1e16 to avoid float overflow
This commit is contained in:
@@ -65,7 +65,7 @@ static void BuildVertMap( vertmap_t &out, const Vector *pVerts, int vertexCount,
|
||||
int index = -1;
|
||||
Vector tmp;
|
||||
ConvertPositionToHL( &pVertList[ivpIndex], tmp);
|
||||
float minDist = 1e24;
|
||||
float minDist = 1e16;
|
||||
for ( int k = 0; k < vertexCount; k++ )
|
||||
{
|
||||
float dist = (tmp-pVerts[k]).Length();
|
||||
|
||||
Reference in New Issue
Block a user