mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 03:24:52 +00:00
hull fix
This commit is contained in:
parent
a62efecf62
commit
11a6c99a53
1 changed files with 13 additions and 13 deletions
|
@ -319,19 +319,6 @@ bool CTFPointManager::UpdatePoint( tf_point_t *pPoint, int nIndex, float flDT, V
|
|||
Vector vecNewVelocity = pPoint->m_vecVelocity + vecGravity + GetAdditionalVelocity( pPoint );
|
||||
Vector vecNewPos = pPoint->m_vecPosition + flDT * vecNewVelocity;
|
||||
|
||||
if ( pVecMins )
|
||||
{
|
||||
*pVecMins = vecMins;
|
||||
}
|
||||
if ( pVecMaxs )
|
||||
{
|
||||
*pVecMaxs = vecMaxs;
|
||||
}
|
||||
if ( pVecNewPos )
|
||||
{
|
||||
*pVecNewPos = vecNewPos;
|
||||
}
|
||||
|
||||
// Create a ray for point to trace
|
||||
Ray_t rayWorld;
|
||||
rayWorld.Init( pPoint->m_vecPosition, vecNewPos, vecMins, vecMaxs );
|
||||
|
@ -391,6 +378,19 @@ bool CTFPointManager::UpdatePoint( tf_point_t *pPoint, int nIndex, float flDT, V
|
|||
|
||||
pPoint->m_vecPosition = vecNewPos;
|
||||
|
||||
if ( pVecMins )
|
||||
{
|
||||
*pVecMins = vecMins;
|
||||
}
|
||||
if ( pVecMaxs )
|
||||
{
|
||||
*pVecMaxs = vecMaxs;
|
||||
}
|
||||
if ( pVecNewPos )
|
||||
{
|
||||
*pVecNewPos = vecNewPos;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue