Fix for MSVC .NET, which can't handle static const declarations in classes.

Make it static, and define in SM_Object.cpp
This commit is contained in:
Kester Maddock 2004-05-17 08:31:35 +00:00
parent 6f4272a200
commit 0f447ac5a8
2 changed files with 2 additions and 3 deletions

@ -267,9 +267,7 @@ public:
private:
// Tweak parameters
static const MT_Scalar ImpulseThreshold = -10.;
static const MT_Scalar FixThreshold = 0.01;
static const MT_Scalar FixVelocity = 0.01;
static MT_Scalar ImpulseThreshold;
// return the actual linear_velocity of this object this
// is the addition of m_combined_lin_vel and m_lin_vel.

@ -49,6 +49,7 @@
#include "MT_MinMax.h"
MT_Scalar SM_Object::ImpulseThreshold = -10.;
SM_Object::SM_Object(
DT_ShapeHandle shape,