Fix debug compile

This commit is contained in:
PixieCore 2022-07-06 21:57:00 +02:00
parent 7d89a42b56
commit ac55e6c142
2 changed files with 0 additions and 12 deletions

View File

@ -1006,13 +1006,6 @@ void MatrixBuildRotation(VMatrix& dst, const Vector3D& initialDirection, const V
} }
MatrixBuildRotationAboutAxis(dst, axis, angle); MatrixBuildRotationAboutAxis(dst, axis, angle);
#ifdef _DEBUG
Vector test;
Vector3DMultiply(dst, initialDirection, test);
test -= finalDirection;
Assert(test.LengthSqr() < 1e-3);
#endif
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@ -28,12 +28,7 @@ std::mutex s_LogMutex;
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
bool HushAsserts() bool HushAsserts()
{ {
#ifdef DBGFLAG_ASSERT
static bool s_bHushAsserts = !!CommandLine()->FindParm("-hushasserts");
return s_bHushAsserts;
#else
return true; return true;
#endif
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------