diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-23 02:14:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-23 02:14:30 +0300 |
commit | 6a65a4cf5b6b10839254c0c5846ec2dbfea882f8 (patch) | |
tree | cdf1dcc071ab18575defff569d33f3cbc8be0348 /src/being/being.cpp | |
parent | 1a5f8957c707625efbcf36722b057d5eda5a21bb (diff) | |
download | plus-6a65a4cf5b6b10839254c0c5846ec2dbfea882f8.tar.gz plus-6a65a4cf5b6b10839254c0c5846ec2dbfea882f8.tar.bz2 plus-6a65a4cf5b6b10839254c0c5846ec2dbfea882f8.tar.xz plus-6a65a4cf5b6b10839254c0c5846ec2dbfea882f8.zip |
Allow delete untracker being particle effects.
This fix some possible memory leaks.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r-- | src/being/being.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index b5732b15f..0cf52c353 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -1349,7 +1349,7 @@ void Being::fireMissile(Being *restrict const victim, { target->moveBy(Vector(0.0F, 0.0F, 32.0F)); target->setLifetime(1000); - victim->controlParticle(target); + victim->controlAutoParticle(target); missile->setDestination(target, 7, 0); missile->setDieDistance(8); @@ -4849,7 +4849,7 @@ void Being::addItemParticles(const int id, FOR_EACH (StringVectCIter, itr, display.particles) { Particle *const p = particleEngine->addEffect(*itr, 0, 0); - controlParticle(p); + controlCustomParticle(p); pi->files.push_back(*itr); pi->particles.push_back(p); } @@ -4893,7 +4893,7 @@ void Being::recreateItemParticles() restrict2 { Particle *const p = particleEngine->addEffect( *str, 0, 0); - controlParticle(p); + controlCustomParticle(p); pi->particles.push_back(p); } } |