Removing one more usecTimestampNow() call in Particle::update()

This commit is contained in:
Andrew Meadows 2014-01-20 13:34:08 -08:00
parent 79e4b6d691
commit 1eb2f19320

View file

@ -484,7 +484,7 @@ void Particle::update(const uint64_t& now) {
const float STILL_MOVING = 0.05f / (float)(TREE_SCALE);
bool isStillMoving = (velocityScalar > STILL_MOVING);
const float REALLY_OLD = 30.0f; // 30 seconds
bool isReallyOld = (getLifetime() > REALLY_OLD);
bool isReallyOld = ((float)(now - _created) > REALLY_OLD);
bool isInHand = getInHand();
bool shouldDie = getShouldDie() || (!isInHand && !isStillMoving && isReallyOld);
setShouldDie(shouldDie);