mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-20 03:45:26 +00:00
more VS2012 L4 warning fixes
This commit is contained in:
parent
502e346eb6
commit
2844ab6912
20 changed files with 30 additions and 8 deletions
|
|
@ -1512,6 +1512,7 @@ bool TSMesh::castRayOpcode( const Point3F &s, const Point3F &e, RayInfo *info, T
|
|||
|
||||
// Do collision.
|
||||
bool safety = ray.Collide( vec, *mOptTree );
|
||||
TORQUE_UNUSED(safety);
|
||||
AssertFatal( safety, "TSMesh::castRayOpcode - no good ray collide!" );
|
||||
|
||||
// If no hit, just skip out.
|
||||
|
|
|
|||
|
|
@ -390,6 +390,7 @@ void TSShape::getObjectDetails(S32 objIndex, Vector<S32>& objDetails)
|
|||
void TSShape::init()
|
||||
{
|
||||
S32 numSubShapes = subShapeFirstNode.size();
|
||||
TORQUE_UNUSED(numSubShapes);
|
||||
AssertFatal(numSubShapes==subShapeFirstObject.size(),"TSShape::init");
|
||||
|
||||
S32 i,j;
|
||||
|
|
|
|||
|
|
@ -213,7 +213,9 @@ void TSShapeAlloc::checkGuard()
|
|||
bool check32 = checkGuard32();
|
||||
bool check16 = checkGuard16();
|
||||
bool check8 = checkGuard8();
|
||||
|
||||
TORQUE_UNUSED(check32);
|
||||
TORQUE_UNUSED(check16);
|
||||
TORQUE_UNUSED(check8);
|
||||
AssertFatal(check32,avar("TSShapeAlloc::checkGuard32: found %i, wanted %i",getSaveGuard32(),getPrevGuard32()));
|
||||
AssertFatal(check16,avar("TSShapeAlloc::checkGuard16: found %i, wanted %i",getSaveGuard16(),getPrevGuard16()));
|
||||
AssertFatal(check8 ,avar("TSShapeAlloc::checkGuard8: found %i, wanted %i",getSaveGuard8() ,getPrevGuard8()));
|
||||
|
|
|
|||
|
|
@ -163,6 +163,7 @@ void TSThread::setSequence(S32 seq, F32 toPos)
|
|||
{
|
||||
const TSShape * shape = mShapeInstance->mShape;
|
||||
|
||||
TORQUE_UNUSED(shape);
|
||||
AssertFatal(shape && shape->sequences.size()>seq && toPos>=0.0f && toPos<=1.0f,
|
||||
"TSThread::setSequence: invalid shape handle, sequence number, or position.");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue