Skip to content

Commit 632d29d

Browse files
hamnTF2EricS-Valve
authored andcommitted
hull fix
1 parent dfcf1ff commit 632d29d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/game/shared/tf/tf_point_manager.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -319,19 +319,6 @@ bool CTFPointManager::UpdatePoint( tf_point_t *pPoint, int nIndex, float flDT, V
319319
Vector vecNewVelocity = pPoint->m_vecVelocity + vecGravity + GetAdditionalVelocity( pPoint );
320320
Vector vecNewPos = pPoint->m_vecPosition + flDT * vecNewVelocity;
321321

322-
if ( pVecMins )
323-
{
324-
*pVecMins = vecMins;
325-
}
326-
if ( pVecMaxs )
327-
{
328-
*pVecMaxs = vecMaxs;
329-
}
330-
if ( pVecNewPos )
331-
{
332-
*pVecNewPos = vecNewPos;
333-
}
334-
335322
// Create a ray for point to trace
336323
Ray_t rayWorld;
337324
rayWorld.Init( pPoint->m_vecPosition, vecNewPos, vecMins, vecMaxs );
@@ -391,6 +378,19 @@ bool CTFPointManager::UpdatePoint( tf_point_t *pPoint, int nIndex, float flDT, V
391378

392379
pPoint->m_vecPosition = vecNewPos;
393380

381+
if ( pVecMins )
382+
{
383+
*pVecMins = vecMins;
384+
}
385+
if ( pVecMaxs )
386+
{
387+
*pVecMaxs = vecMaxs;
388+
}
389+
if ( pVecNewPos )
390+
{
391+
*pVecNewPos = vecNewPos;
392+
}
393+
394394
return true;
395395
}
396396

0 commit comments

Comments
 (0)