mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
minor changes
This commit is contained in:
parent
e679ee89ae
commit
ff5a81036f
@ -100,7 +100,7 @@ do_particles(float dt) {
|
|||||||
// cout << " count is: " << cur_ps->get_render_parent()->get_ref_count() << endl;
|
// cout << " count is: " << cur_ps->get_render_parent()->get_ref_count() << endl;
|
||||||
cur_ps->update(dt);
|
cur_ps->update(dt);
|
||||||
|
|
||||||
// handle age
|
// Handle age:
|
||||||
if (cur_ps->get_system_grows_older_flag() == true) {
|
if (cur_ps->get_system_grows_older_flag() == true) {
|
||||||
float age = cur_ps->get_system_age() + dt;
|
float age = cur_ps->get_system_age() + dt;
|
||||||
cur_ps->set_system_age(age);
|
cur_ps->set_system_age(age);
|
||||||
@ -108,7 +108,7 @@ do_particles(float dt) {
|
|||||||
// handle death
|
// handle death
|
||||||
if (age >= cur_ps->get_system_lifespan()) {
|
if (age >= cur_ps->get_system_lifespan()) {
|
||||||
plist< PT(ParticleSystem) >::iterator kill = cur;
|
plist< PT(ParticleSystem) >::iterator kill = cur;
|
||||||
cur++;
|
++cur;
|
||||||
|
|
||||||
_ps_list.erase(kill);
|
_ps_list.erase(kill);
|
||||||
render_due = false;
|
render_due = false;
|
||||||
@ -121,7 +121,7 @@ do_particles(float dt) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cur++;
|
++cur;
|
||||||
}
|
}
|
||||||
// cout << "PSM::do_particles finished." << endl;
|
// cout << "PSM::do_particles finished." << endl;
|
||||||
// cout << "ParticleSystemManager::doparticles exiting." << endl;
|
// cout << "ParticleSystemManager::doparticles exiting." << endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user