Changeset 7216 in orxonox.OLD for branches/std/src/story_entities
- Timestamp:
- Mar 12, 2006, 8:54:30 AM (19 years ago)
- Location:
- branches/std/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/story_entities/game_world_data.cc
r7203 r7216 343 343 344 344 if (this->music != NULL) 345 this->setSoundTrack( NULL);345 this->setSoundTrack(""); 346 346 this->music = NULL; 347 347 /* stop the sound eninge */ … … 354 354 355 355 356 void GameWorldData::setSoundTrack(const char*name)356 void GameWorldData::setSoundTrack(const std::string& name) 357 357 { 358 358 if (this->music != NULL) … … 360 360 this->music = NULL; 361 361 362 if ( name != NULL)363 { 364 PRINTF(3)("Setting Sound Track to %s\n", name );362 if (!name.empty()) 363 { 364 PRINTF(3)("Setting Sound Track to %s\n", name.c_str()); 365 365 std::string oggFile = ResourceManager::getFullName(name); 366 366 this->music = new OggPlayer(oggFile); -
branches/std/src/story_entities/game_world_data.h
r7020 r7216 42 42 43 43 /* interface functions */ 44 void setSoundTrack(const char*name);44 void setSoundTrack(const std::string& name); 45 45 void loadGameRule(const TiXmlElement* root); 46 46
Note: See TracChangeset
for help on using the changeset viewer.