mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
make really old 30 seconds not 300
This commit is contained in:
parent
5b36953e81
commit
95df772707
1 changed files with 1 additions and 1 deletions
|
@ -404,7 +404,7 @@ void Particle::update() {
|
|||
float velocityScalar = glm::length(getVelocity());
|
||||
const float STILL_MOVING = 0.05 / TREE_SCALE;
|
||||
bool isStillMoving = (velocityScalar > STILL_MOVING);
|
||||
const float REALLY_OLD = 300.0f; // 300 seconds
|
||||
const float REALLY_OLD = 30.0f; // 30 seconds
|
||||
bool isReallyOld = (getLifetime() > REALLY_OLD);
|
||||
bool isInHand = getInHand();
|
||||
bool shouldDie = !isInHand && !isStillMoving && isReallyOld;
|
||||
|
|
Loading…
Reference in a new issue