diff options
author | Kent Mein <mein@cs.umn.edu> | 2005-03-25 19:31:05 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2005-03-25 19:31:05 +0300 |
commit | 55af35d795bc1580998d72f464a493805f0ecbae (patch) | |
tree | b7fd375667b86628fb302939190bd8104e2187c8 /source | |
parent | 589240926b54a22775cb4c37a2b672aa0338dc77 (diff) |
I'll break this commit into two sections in the moto files
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
Diffstat (limited to 'source')
6 files changed, 3 insertions, 19 deletions
diff --git a/source/gameengine/Converter/KX_BlenderSceneConverter.cpp b/source/gameengine/Converter/KX_BlenderSceneConverter.cpp index 53b775b8920..283710a5d5b 100644 --- a/source/gameengine/Converter/KX_BlenderSceneConverter.cpp +++ b/source/gameengine/Converter/KX_BlenderSceneConverter.cpp @@ -177,7 +177,6 @@ void KX_BlenderSceneConverter::ConvertScene(const STR_String& scenename, if (blenderscene) { - int i=0; if (blenderscene->world) { diff --git a/source/gameengine/Ketsji/KX_MouseFocusSensor.cpp b/source/gameengine/Ketsji/KX_MouseFocusSensor.cpp index 7c61edd45e7..7441863b7b7 100644 --- a/source/gameengine/Ketsji/KX_MouseFocusSensor.cpp +++ b/source/gameengine/Ketsji/KX_MouseFocusSensor.cpp @@ -31,10 +31,6 @@ * 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. @@ -152,7 +148,6 @@ bool KX_MouseFocusSensor::RayHit(KX_ClientObjectInfo* client_info, MT_Point3& hi 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; diff --git a/source/gameengine/Physics/Sumo/SumoPHYCallbackBridge.cpp b/source/gameengine/Physics/Sumo/SumoPHYCallbackBridge.cpp index 52d3888f58c..1992bbe3421 100755 --- a/source/gameengine/Physics/Sumo/SumoPHYCallbackBridge.cpp +++ b/source/gameengine/Physics/Sumo/SumoPHYCallbackBridge.cpp @@ -62,5 +62,5 @@ DT_Bool SumoPHYCallbackBridge::SolidToPHY(void *client_object1, return m_phyCallback(m_orgClientData, ctrl1,ctrl2,0); +} -}
\ No newline at end of file diff --git a/source/gameengine/Physics/Sumo/SumoPHYCallbackBridge.h b/source/gameengine/Physics/Sumo/SumoPHYCallbackBridge.h index 343fd7ce938..4f4d84182ae 100755 --- a/source/gameengine/Physics/Sumo/SumoPHYCallbackBridge.h +++ b/source/gameengine/Physics/Sumo/SumoPHYCallbackBridge.h @@ -24,4 +24,5 @@ public: }; -#endif //SUMO_PHY_CALLBACK_BRIDGE_H
\ No newline at end of file + +#endif //SUMO_PHY_CALLBACK_BRIDGE_H diff --git a/source/gameengine/Physics/Sumo/SumoPhysicsController.cpp b/source/gameengine/Physics/Sumo/SumoPhysicsController.cpp index 5ff47b475d1..57922e856c4 100644 --- a/source/gameengine/Physics/Sumo/SumoPhysicsController.cpp +++ b/source/gameengine/Physics/Sumo/SumoPhysicsController.cpp @@ -36,10 +36,6 @@ #include "MT_Quaternion.h" -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - SumoPhysicsController::SumoPhysicsController( class SM_Scene* sumoScene, class SM_Object* sumoObj, diff --git a/source/gameengine/Physics/Sumo/SumoPhysicsEnvironment.cpp b/source/gameengine/Physics/Sumo/SumoPhysicsEnvironment.cpp index 2b29b2602a8..6cd5d513357 100644 --- a/source/gameengine/Physics/Sumo/SumoPhysicsEnvironment.cpp +++ b/source/gameengine/Physics/Sumo/SumoPhysicsEnvironment.cpp @@ -36,11 +36,6 @@ #include "SumoPHYCallbackBridge.h" #include <SOLID/SOLID.h> -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - - SumoPhysicsEnvironment::SumoPhysicsEnvironment() { m_fixedTimeStep = 1.f/60.f; @@ -101,7 +96,6 @@ bool SumoPhysicsEnvironment::proceedDeltaTime(double curTime,float timeStep) } else { m_currentTime += timeStep; - float ticrate = 1.f/timeStep; result = m_sumoScene->proceed(m_currentTime, timeStep); } return result; @@ -257,4 +251,3 @@ PHY_IPhysicsController* SumoPhysicsEnvironment::CreateConeController(float coner return ctrl; } - |