mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-29 16:24:16 +00:00
engine: common: remove NaN check, it's mostly useless on text data
This commit is contained in:
parent
771c359ed0
commit
81b01ac561
@ -2759,13 +2759,8 @@ static qboolean Mod_LumpLooksLikePlanes( const byte *in, dlump_t *lump, qboolean
|
|||||||
|
|
||||||
for( i = 0; i < numplanes; i++ )
|
for( i = 0; i < numplanes; i++ )
|
||||||
{
|
{
|
||||||
if( IS_NAN( planes[i].dist ) )
|
// planes can only be from 0 to 5: PLANE_X, Y, Z and PLANE_ANYX, Y and Z
|
||||||
return false;
|
if( planes[i].type < 0 || planes[i].type > 5 )
|
||||||
|
|
||||||
if( VectorIsNAN( planes[i].normal ))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
if( planes[i].type > 6 )
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user