Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 24, 2007, 6:13:17 PM (17 years ago)
Author:
marcscha
Message:

SegFault prevention hack in fast factory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/lbolt.cc

    r10274 r10345  
    6161  this->halo->setSize(.35, .35);
    6262  this->halo->setTexture("hbolt_halo.png");
     63
     64
    6365}
    6466
     
    8688void LBolt::activate()
    8789{
     90  this->origList = this->getOMListNumber();
    8891  this->toList(OM_ENVIRON);
    8992  if (unlikely(LBolt::explosionParticles == NULL))
     
    143146  for( ObjectList<Playable>::const_iterator eIterator = Playable::objectList().begin(); eIterator !=Playable::objectList().end(); eIterator++)
    144147  {
    145     if( ((*eIterator)->getOMListNumber() == OM_GROUP_00)  && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 8)
     148    if( ((*eIterator)->getOMListNumber() != (this->origList -1))   && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 8)
    146149    {
    147150      (*eIterator)->hit (this->getDamage(),this);
Note: See TracChangeset for help on using the changeset viewer.