bunch of optimizations

This commit is contained in:
Eduardo Bart
2012-03-20 12:17:10 -03:00
parent 3cd31bcd1e
commit b4261a8c7b
37 changed files with 164 additions and 123 deletions

View File

@@ -56,7 +56,7 @@ void Particle::render()
}
}
void Particle::update(double elapsedTime)
void Particle::update(float elapsedTime)
{
// check if finished
if(m_duration >= 0 && m_elapsedTime >= m_duration) {
@@ -71,7 +71,7 @@ void Particle::update(double elapsedTime)
m_elapsedTime += elapsedTime;
}
void Particle::updatePosition(double elapsedTime)
void Particle::updatePosition(float elapsedTime)
{
if(m_ignorePhysicsAfter < 0 || m_elapsedTime < m_ignorePhysicsAfter ) {
// update position