Changeset 10345 in orxonox.OLD for branches/playability/src/world_entities/projectiles/acid_splash.cc
- Timestamp:
- Jan 24, 2007, 6:13:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/acid_splash.cc
r10333 r10345 56 56 57 57 58 int rnd = rand()/3;58 int rnd = int(rand() % 3); 59 59 60 60 switch (rnd){ … … 76 76 // this->grid->setTexture( "maps/blub.png"); 77 77 78 this->grid->toList(OM_ENVIRON); //this->getOMListNumber()); 79 this->toList(OM_ENVIRON); 78 this->grid->toList(OM_ENVIRON); 80 79 } 81 80 … … 89 88 // delete this->emitter; 90 89 //delete this->grid; 91 92 90 this->grid->toList(OM_DEAD); 93 91 … … 97 95 void AcidSplash::activate() 98 96 { 99 this->unhide(); 97 this->origList = this->getOMListNumber(); 98 this->toList(OM_ENVIRON); 99 // this->unhide(); 100 100 this->grid->setVisibiliy(true); 101 101 … … 110 110 this->lifeCycle = 0.0; 111 111 112 this->hide();112 // this->hide(); 113 113 this->grid->setVisibiliy(false); 114 this->toList(OM_DEAD); 114 this->lifeCycle = 0.0; 115 this->toList(OM_NULL); 116 //this->toList(OM_DEAD); 115 117 this->removeNode(); 116 118 … … 155 157 for( ObjectList<Playable>::const_iterator eIterator = Playable::objectList().begin(); eIterator !=Playable::objectList().end(); eIterator++) 156 158 { 157 if( ((*eIterator)->getOMListNumber() == (this->getOMListNumber()-1)) && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 8)159 if( ((*eIterator)->getOMListNumber() != (this->origList -1)) && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 8) 158 160 { 159 161 (*eIterator)->hit (this->getDamage(),this);
Note: See TracChangeset
for help on using the changeset viewer.