I got rid of a few warnings about blah shadows a previous declaration.
In the gameengine files I fix the following:
removed some unused vars
removed dos style line breaks
added newlines to last line in a couple of files to remove warnings.
Kent
class MT_Point2 : public MT_Vector2 {
public:
MT_Point2() {}
- MT_Point2(const float *v) : MT_Vector2(v) {}
- MT_Point2(const double *v) : MT_Vector2(v) {}
- MT_Point2(MT_Scalar x, MT_Scalar y) : MT_Vector2(x, y) {}
+ MT_Point2(const float *v2) : MT_Vector2(v2) {}
+ MT_Point2(const double *v2) : MT_Vector2(v2) {}
+ MT_Point2(MT_Scalar x2, MT_Scalar y2) : MT_Vector2(x2, y2) {}
MT_Point2& operator+=(const MT_Vector2& v);
MT_Point2& operator-=(const MT_Vector2& v);
class MT_Vector2 : public MT_Tuple2 {
public:
MT_Vector2() {}
- MT_Vector2(const float *v) : MT_Tuple2(v) {}
- MT_Vector2(const double *v) : MT_Tuple2(v) {}
+ MT_Vector2(const float *v2) : MT_Tuple2(v2) {}
+ MT_Vector2(const double *v2) : MT_Tuple2(v2) {}
MT_Vector2(MT_Scalar xx, MT_Scalar yy) : MT_Tuple2(xx, yy) {}
MT_Vector2& operator+=(const MT_Vector2& v);
if (blenderscene)
{
- int i=0;
if (blenderscene->world)
{
* KX_MouseFocusSensor determines mouse in/out/over events.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#ifdef WIN32
// This warning tells us about truncation of __long__ stl-generated names.
// It can occasionally cause DevStudio to have internal compiler warnings.
bool KX_MouseFocusSensor::ParentObjectHasFocus(void)
{
- bool res = false;
m_hitPosition = MT_Vector3(0,0,0);
m_hitNormal = MT_Vector3(1,0,0);
MT_Point3 resultpoint;
return m_phyCallback(m_orgClientData,
ctrl1,ctrl2,0);
+}
-}
\ No newline at end of file
};
-#endif //SUMO_PHY_CALLBACK_BRIDGE_H
\ No newline at end of file
+
+#endif //SUMO_PHY_CALLBACK_BRIDGE_H
#include "MT_Quaternion.h"
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
SumoPhysicsController::SumoPhysicsController(
class SM_Scene* sumoScene,
class SM_Object* sumoObj,
#include "SumoPHYCallbackBridge.h"
#include <SOLID/SOLID.h>
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-
SumoPhysicsEnvironment::SumoPhysicsEnvironment()
{
m_fixedTimeStep = 1.f/60.f;
} else
{
m_currentTime += timeStep;
- float ticrate = 1.f/timeStep;
result = m_sumoScene->proceed(m_currentTime, timeStep);
}
return result;
return ctrl;
}
-