1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-20 04:26:03 +08:00

Fix conflicts with std::swap.

This commit is contained in:
David Anderson
2020-05-18 17:43:34 -07:00
parent 049f030433
commit b1cae9d92c
26 changed files with 57 additions and 57 deletions

View File

@ -1280,7 +1280,7 @@ IPhysicsConstraint *CPhysSlideConstraint::CreateConstraint( IPhysicsConstraintGr
sliding.limitMax = DotProduct( axisDirection, m_axisEnd );
if ( sliding.limitMax < sliding.limitMin )
{
swap( sliding.limitMin, sliding.limitMax );
V_swap( sliding.limitMin, sliding.limitMax );
}
// expand limits to make initial position of the attached object valid