Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 3, 2006, 1:46:38 PM (18 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

    r7416 r7503  
    4848{
    4949  AtmosphericEngine::singletonRef = NULL;
     50
     51  this->weatherEffects = ClassList::getList( CL_WEATHER_EFFECT);
     52
     53  if (this->weatherEffects != NULL)
     54  {
     55    list<BaseObject*>::const_iterator it;
     56    for (it = this->weatherEffects->begin(); it != this->weatherEffects->end(); it++)
     57      dynamic_cast<WeatherEffect*>(*it)->deactivate();
     58  }
     59
    5060}
    5161
Note: See TracChangeset for help on using the changeset viewer.