do not threat c4 as grenade
simplify linkents several other fixes
This commit is contained in:
parent
e9d826ccea
commit
a7231d87ed
8 changed files with 58 additions and 88 deletions
|
|
@ -203,7 +203,7 @@ namespace Math
|
|||
//
|
||||
static inline void SineCosine (float rad, float *sine, float *cosine)
|
||||
{
|
||||
#if defined (_WIN32) && defined (_MSC_VER)
|
||||
#if defined (_WIN32) && defined (_MSC_VER) && !defined (__clang__)
|
||||
__asm
|
||||
{
|
||||
fld dword ptr[rad]
|
||||
|
|
@ -223,7 +223,8 @@ namespace Math
|
|||
*cosine = _cos;
|
||||
*sine = _sin;
|
||||
#else
|
||||
#error "SineConsine not defined."
|
||||
*sine = sinf (rad);
|
||||
*cosine = cosf (rad);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -616,7 +617,7 @@ public:
|
|||
//
|
||||
inline static const Vector &GetZero (void)
|
||||
{
|
||||
static const Vector &s_zero = Vector (0.0f, 0.0f, 0.0f);
|
||||
static const Vector s_zero = Vector (0.0f, 0.0f, 0.0f);
|
||||
return s_zero;
|
||||
}
|
||||
|
||||
|
|
@ -2754,21 +2755,6 @@ public:
|
|||
return strcmp (m_bufferPtr, string.m_bufferPtr);
|
||||
}
|
||||
|
||||
//
|
||||
// Function: CompareI
|
||||
// Compares string with other string without case check.
|
||||
//
|
||||
// Parameters:
|
||||
// string - String t compare with.
|
||||
//
|
||||
// Returns:
|
||||
// Zero if they are equal.
|
||||
//
|
||||
int CompareI (String &string) const
|
||||
{
|
||||
return strcmpi (m_bufferPtr, string.m_bufferPtr);
|
||||
}
|
||||
|
||||
//
|
||||
// Function: Compare
|
||||
// Compares string with other string.
|
||||
|
|
@ -2784,21 +2770,6 @@ public:
|
|||
return strcmp (m_bufferPtr, str);
|
||||
}
|
||||
|
||||
//
|
||||
// Function: CompareI
|
||||
// Compares string with other string without case check.
|
||||
//
|
||||
// Parameters:
|
||||
// str - String to compare with.
|
||||
//
|
||||
// Returns:
|
||||
// Zero if they are equal.
|
||||
//
|
||||
int CompareI (const char *str) const
|
||||
{
|
||||
return stricmp (m_bufferPtr, str);
|
||||
}
|
||||
|
||||
//
|
||||
// Function: Collate
|
||||
// Collate the string.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue