Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7509 in orxonox.OLD for branches/atmospheric_engine/src


Ignore:
Timestamp:
May 3, 2006, 2:30:51 PM (19 years ago)
Author:
hdavid
Message:

branches/atmospheric_engine: killing the weather effects works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/atmospheric_engine/src/lib/graphics/effects/atmospheric_engine.cc

    r7503 r7509  
    5353  if (this->weatherEffects != NULL)
    5454  {
    55     list<BaseObject*>::const_iterator it;
    56     for (it = this->weatherEffects->begin(); it != this->weatherEffects->end(); it++)
    57       dynamic_cast<WeatherEffect*>(*it)->deactivate();
     55    //for (unsigned int i = 0; i < weatherEffects.size(); ++i)
     56      while(!this->weatherEffects->empty())
     57        delete this->weatherEffects->front();
    5858  }
     59}
    5960
    60 }
    6161
    6262
Note: See TracChangeset for help on using the changeset viewer.