From 81b01ac5613419882fb99f85579c3de9b14ab96f Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 5 May 2022 15:14:48 +0300 Subject: [PATCH] engine: common: remove NaN check, it's mostly useless on text data --- engine/common/mod_bmodel.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/engine/common/mod_bmodel.c b/engine/common/mod_bmodel.c index 842a53e8..294d0dd8 100644 --- a/engine/common/mod_bmodel.c +++ b/engine/common/mod_bmodel.c @@ -2759,13 +2759,8 @@ static qboolean Mod_LumpLooksLikePlanes( const byte *in, dlump_t *lump, qboolean for( i = 0; i < numplanes; i++ ) { - if( IS_NAN( planes[i].dist ) ) - return false; - - if( VectorIsNAN( planes[i].normal )) - return false; - - if( planes[i].type > 6 ) + // planes can only be from 0 to 5: PLANE_X, Y, Z and PLANE_ANYX, Y and Z + if( planes[i].type < 0 || planes[i].type > 5 ) return false; }