mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-05 22:09:59 +03:00
physics: fix a lot of problems
This commit is contained in:
@@ -2788,7 +2788,7 @@ int CFastPointLeafNum::GetLeaf( const Vector &vPos )
|
||||
m_vCachedPos = vPos;
|
||||
|
||||
CCollisionBSPData *pBSPData = GetCollisionBSPData();
|
||||
m_flDistToExitLeafSqr = 1e16;
|
||||
m_flDistToExitLeafSqr = 1e24;
|
||||
m_iCachedLeaf = CM_PointLeafnumMinDistSqr_r( pBSPData, vPos, 0, m_flDistToExitLeafSqr );
|
||||
}
|
||||
|
||||
|
||||
@@ -102,8 +102,8 @@ inline CVertIndex CDispInfo::IndexToVert( int index ) const
|
||||
|
||||
void CDispInfo::UpdateBoundingBox()
|
||||
{
|
||||
m_BBoxMin.Init( 1e16, 1e16, 1e16 );
|
||||
m_BBoxMax.Init( -1e16, -1e16, -1e16 );
|
||||
m_BBoxMin.Init( 1e24, 1e24, 1e24 );
|
||||
m_BBoxMax.Init( -1e24, -1e24, -1e24 );
|
||||
|
||||
for( int i=0; i < NumVerts(); i++ )
|
||||
{
|
||||
|
||||
@@ -793,7 +793,7 @@ CDispInfo::CDispInfo()
|
||||
|
||||
m_pPowerInfo = NULL;
|
||||
|
||||
m_ViewerSphereCenter.Init( 1e16, 1e16, 1e16 );
|
||||
m_ViewerSphereCenter.Init( 1e24, 1e24, 1e24 );
|
||||
|
||||
m_bInUse = false;
|
||||
|
||||
@@ -995,7 +995,7 @@ int FindNeighborCornerVert( CCoreDispInfo *pDisp, const Vector &vecPoint )
|
||||
CDispUtilsHelper *pDispHelper = pDisp;
|
||||
|
||||
int iClosest = 0;
|
||||
float flClosest = 1e16;
|
||||
float flClosest = 1e24;
|
||||
for ( int iCorner = 0; iCorner < 4; ++iCorner )
|
||||
{
|
||||
|
||||
|
||||
@@ -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 = 1e16;
|
||||
portalRect.right = portalRect.top = -1e16;
|
||||
portalRect.left = portalRect.bottom = 1e24;
|
||||
portalRect.right = portalRect.top = -1e24;
|
||||
bool bValidExtents = false;
|
||||
worldbrushdata_t *pBrushData = host_state.worldbrush;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user