Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6987 in orxonox.OLD for trunk/src/story_entities/game_world_data.cc


Ignore:
Timestamp:
Feb 2, 2006, 6:24:50 PM (18 years ago)
Author:
bensch
Message:

trunk: some minor fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/game_world_data.cc

    r6985 r6987  
    323323
    324324  if (this->music != NULL)
    325     delete this->music;
     325    this->setSoundTrack(NULL);
    326326  this->music = NULL;
    327327  /* stop the sound eninge */
     
    338338  if (this->music != NULL)
    339339    delete this->music;
    340 
    341   PRINTF(3)("Setting Sound Track to %s\n", name);
    342   this->music = (OggPlayer*)ResourceManager::getInstance()->load(name, OGG, RP_LEVEL);
    343 }
    344 
    345 
     340  this->music = NULL;
     341
     342  if (name != NULL)
     343  {
     344    PRINTF(3)("Setting Sound Track to %s\n", name);
     345    this->music = (OggPlayer*)ResourceManager::getInstance()->load(name, OGG, RP_LEVEL);
     346  }
     347}
     348
     349
Note: See TracChangeset for help on using the changeset viewer.