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
@@ -122,8 +122,8 @@ struct portalclip_t
static inline bool GetPortalScreenExtents( dareaportal_t *pPortal,
portalclip_t * RESTRICT clip, CPortalRect &portalRect , float *pReflectionWaterHeight )
{
portalRect.left = portalRect.bottom = 1e24;
portalRect.right = portalRect.top = -1e24;
portalRect.left = portalRect.bottom = 1e16;
portalRect.right = portalRect.top = -1e16;
bool bValidExtents = false;
worldbrushdata_t *pBrushData = host_state.worldbrush;