mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-07-16 06:19:58 +00:00
fix(Build): Fix ssemath for non gcc compilers.
fix(Vscript): Move default parameter to header.
This commit is contained in:
parent
d412f097a9
commit
dab5ba26e4
@ -3140,4 +3140,31 @@ FORCEINLINE int BoxOnPlaneSideSIMD( const fltx4& emins, const fltx4& emaxs, cons
|
||||
return sides[0];
|
||||
}
|
||||
|
||||
|
||||
// Some convenience operator overloads, which are just aliasing the functions above.
|
||||
// Unneccessary on 360, as you already have them from xboxmath.h
|
||||
// Componentwise add
|
||||
#ifndef COMPILER_GCC
|
||||
|
||||
FORCEINLINE fltx4 operator+=( fltx4 &a, FLTX4 b )
|
||||
{
|
||||
a = AddSIMD( a, b );
|
||||
return a;
|
||||
}
|
||||
|
||||
FORCEINLINE fltx4 operator-=( fltx4 &a, FLTX4 b )
|
||||
{
|
||||
a = SubSIMD( a, b );
|
||||
return a;
|
||||
}
|
||||
|
||||
|
||||
FORCEINLINE fltx4 operator*=( fltx4 &a, FLTX4 b )
|
||||
{
|
||||
a = MulSIMD( a, b );
|
||||
return a;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif // _ssemath_h
|
||||
|
||||
@ -330,7 +330,7 @@ void CScriptKeyValues::ScriptSetBool( bool bValue )
|
||||
|
||||
|
||||
// constructors
|
||||
CScriptKeyValues::CScriptKeyValues( KeyValues *pKeyValues = NULL )
|
||||
CScriptKeyValues::CScriptKeyValues( KeyValues *pKeyValues )
|
||||
{
|
||||
if (pKeyValues == NULL)
|
||||
{
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
class CScriptKeyValues
|
||||
{
|
||||
public:
|
||||
CScriptKeyValues( KeyValues *pKeyValues );
|
||||
CScriptKeyValues( KeyValues *pKeyValues = NULL );
|
||||
~CScriptKeyValues( );
|
||||
|
||||
HSCRIPT ScriptFindKey( const char *pszName );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user