Changeset 5445 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Oct 29, 2005, 11:08:08 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/test_bullet.cc
r5444 r5445 64 64 TestBullet::~TestBullet () 65 65 { 66 delete this->emitter;66 // delete this->emitter; 67 67 68 /* this is normaly done by World.cc by deleting the ParticleEngine 69 if (TestBullet::explosionParticles != NULL && ClassList::getList(CL_TEST_BULLET)->getSize() == 1)68 /* this is normaly done by World.cc by deleting the ParticleEngine */ 69 if (TestBullet::explosionParticles != NULL && ClassList::getList(CL_TEST_BULLET)->getSize() <= 1) 70 70 { 71 delete TestBullet::explosionParticles; 71 if (ClassList::exists(TestBullet::explosionParticles, CL_PARTICLE_SYSTEM)) 72 delete TestBullet::explosionParticles; 72 73 TestBullet::explosionParticles = NULL; 74 printf("-------------------\n"); 73 75 } 74 */ 76 75 77 } 76 78 … … 83 85 if (unlikely(TestBullet::explosionParticles == NULL)) 84 86 { 87 ClassList::debug(3, CL_PARTICLE_SYSTEM); 85 88 TestBullet::explosionParticles = new ParticleSystem(10000, PARTICLE_SPRITE); 89 TestBullet::explosionParticles->setName("TestBulletTrailParticles"); 86 90 TestBullet::explosionParticles->setLifeSpan(.5); 87 91 TestBullet::explosionParticles->setRadius(0.0, .5); … … 91 95 TestBullet::explosionParticles->setColor(0.5, .8,.8,0,.5); 92 96 TestBullet::explosionParticles->setColor(1.0, .5,.5,.5,.0); 97 printf("::::::::::::::::::::::::::::\n"); 93 98 } 94 99
Note: See TracChangeset
for help on using the changeset viewer.