mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-05 09:03:28 +08:00
Replace HushAsserts() calls in mathlib. Older SDK2013 mods don't have this.
This commit is contained in:
parent
210dc2073f
commit
d0c71a9eb7
@ -1862,10 +1862,13 @@ void QuaternionMult( const Quaternion &p, const Quaternion &q, Quaternion &qt )
|
|||||||
|
|
||||||
void QuaternionMatrix( const Quaternion &q, const Vector &pos, matrix3x4_t& matrix )
|
void QuaternionMatrix( const Quaternion &q, const Vector &pos, matrix3x4_t& matrix )
|
||||||
{
|
{
|
||||||
if ( !HushAsserts() )
|
#ifdef DBGFLAG_ASSERT
|
||||||
|
static bool s_bHushAsserts = !!CommandLine()->FindParm("-hushasserts");
|
||||||
|
if (!s_bHushAsserts)
|
||||||
{
|
{
|
||||||
Assert( pos.IsValid() );
|
Assert( pos.IsValid() );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
QuaternionMatrix( q, matrix );
|
QuaternionMatrix( q, matrix );
|
||||||
|
|
||||||
@ -1877,10 +1880,13 @@ void QuaternionMatrix( const Quaternion &q, const Vector &pos, matrix3x4_t& matr
|
|||||||
void QuaternionMatrix( const Quaternion &q, matrix3x4_t& matrix )
|
void QuaternionMatrix( const Quaternion &q, matrix3x4_t& matrix )
|
||||||
{
|
{
|
||||||
Assert( s_bMathlibInitialized );
|
Assert( s_bMathlibInitialized );
|
||||||
if ( !HushAsserts() )
|
#ifdef DBGFLAG_ASSERT
|
||||||
|
static bool s_bHushAsserts = !!CommandLine()->FindParm("-hushasserts");
|
||||||
|
if ( !s_bHushAsserts )
|
||||||
{
|
{
|
||||||
Assert( q.IsValid() );
|
Assert( q.IsValid() );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _VPROF_MATHLIB
|
#ifdef _VPROF_MATHLIB
|
||||||
VPROF_BUDGET( "QuaternionMatrix", "Mathlib" );
|
VPROF_BUDGET( "QuaternionMatrix", "Mathlib" );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user