mirror of
https://github.com/overte-org/overte.git
synced 2025-08-12 11:34:15 +02:00
Removing one more usecTimestampNow() call in Particle::update()
This commit is contained in:
parent
79e4b6d691
commit
1eb2f19320
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue