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/hbolt.cc

    r10274 r10345  
    5959  this->halo->setSize(.65, .65);
    6060  this->halo->setTexture("hbolt_halo2.png");
     61
    6162}
    6263
     
    8485void HBolt::activate()
    8586{
     87  this->origList = this->getOMListNumber();
    8688  this->toList(OM_ENVIRON);
    8789  if (unlikely(HBolt::explosionParticles == NULL))
     
    144146  for( ObjectList<Playable>::const_iterator eIterator = Playable::objectList().begin(); eIterator !=Playable::objectList().end(); eIterator++)
    145147  {
    146     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)
    147149    {
    148150      (*eIterator)->hit (this->getDamage(),this);
Note: See TracChangeset for help on using the changeset viewer.