diff options
author | Jean-Luc Peurière <jlp@nerim.net> | 2005-03-09 22:45:59 +0300 |
---|---|---|
committer | Jean-Luc Peurière <jlp@nerim.net> | 2005-03-09 22:45:59 +0300 |
commit | c78e44cdc563853c250da78ee78ba622c39126b2 (patch) | |
tree | fb116af7e1edd94ef96ae883bea727be372e2bd2 /source/gameengine/GameLogic | |
parent | 77d44e88e95d86661fc8b29db923083ec747cf9d (diff) |
big warning hunt commit
lot of casts, added prototypes, missing includes and some true errors
Diffstat (limited to 'source/gameengine/GameLogic')
5 files changed, 5 insertions, 6 deletions
diff --git a/source/gameengine/GameLogic/SCA_LogicManager.cpp b/source/gameengine/GameLogic/SCA_LogicManager.cpp index 0829fb0657b..483a3c59a26 100644 --- a/source/gameengine/GameLogic/SCA_LogicManager.cpp +++ b/source/gameengine/GameLogic/SCA_LogicManager.cpp @@ -182,7 +182,7 @@ void SCA_LogicManager::BeginFrame(double curtime, double fixedtime) (*ie)->NextFrame(curtime, fixedtime); // for this frame, look up for activated sensors, and build the collection of triggered controllers - int numsensors = this->m_activatedsensors.size(); + // int numsensors = this->m_activatedsensors.size(); /*unused*/ set<SmartControllerPtr> triggeredControllerSet; @@ -201,7 +201,7 @@ void SCA_LogicManager::BeginFrame(double curtime, double fixedtime) } - int numtriggered = triggeredControllerSet.size(); + // int numtriggered = triggeredControllerSet.size(); /*unused*/ for (set<SmartControllerPtr>::iterator tit=triggeredControllerSet.begin(); !(tit==triggeredControllerSet.end());tit++) { diff --git a/source/gameengine/GameLogic/SCA_PropertyActuator.cpp b/source/gameengine/GameLogic/SCA_PropertyActuator.cpp index a39e59fe451..c3e2066fc65 100644 --- a/source/gameengine/GameLogic/SCA_PropertyActuator.cpp +++ b/source/gameengine/GameLogic/SCA_PropertyActuator.cpp @@ -103,7 +103,7 @@ bool SCA_PropertyActuator::Update() CValue* oldprop = propowner->GetProperty(m_propname); if (oldprop) { - int waarde = (int)oldprop->GetNumber(); + // int waarde = (int)oldprop->GetNumber(); /*unused*/ CExpression* expr = new COperator2Expr(VALUE_ADD_OPERATOR,new CConstExpr(oldprop->AddRef()), userexpr->AddRef()); diff --git a/source/gameengine/GameLogic/SCA_PythonController.cpp b/source/gameengine/GameLogic/SCA_PythonController.cpp index 26ab3da7c13..3a7932fa51c 100644 --- a/source/gameengine/GameLogic/SCA_PythonController.cpp +++ b/source/gameengine/GameLogic/SCA_PythonController.cpp @@ -128,7 +128,6 @@ void SCA_PythonController::SetDictionary(PyObject* pythondictionary) m_pythondictionary = PyDict_Copy(pythondictionary); /* new reference */ } - static char* sPyGetCurrentController__doc__; diff --git a/source/gameengine/GameLogic/SCA_RandomActuator.cpp b/source/gameengine/GameLogic/SCA_RandomActuator.cpp index da6fe06a708..474ad08eee3 100644 --- a/source/gameengine/GameLogic/SCA_RandomActuator.cpp +++ b/source/gameengine/GameLogic/SCA_RandomActuator.cpp @@ -88,7 +88,7 @@ CValue* SCA_RandomActuator::GetReplica() bool SCA_RandomActuator::Update() { - bool result = false; + //bool result = false; /*unused*/ bool bNegativeEvent = IsNegativeEvent(); RemoveAllEvents(); diff --git a/source/gameengine/GameLogic/SCA_RandomNumberGenerator.cpp b/source/gameengine/GameLogic/SCA_RandomNumberGenerator.cpp index a25ac4089f9..06b5cca6ce9 100644 --- a/source/gameengine/GameLogic/SCA_RandomNumberGenerator.cpp +++ b/source/gameengine/GameLogic/SCA_RandomNumberGenerator.cpp @@ -57,7 +57,7 @@ #define TEMPERING_SHIFT_L(y) (y >> 18) SCA_RandomNumberGenerator::SCA_RandomNumberGenerator(long seed) { - int mti = N + 1; + // int mti = N + 1; /*unused*/ m_seed = seed; SetStartVector(); } |