Changeset 6634 in orxonox.OLD for trunk/src/story_entities/game_world_data.cc
- Timestamp:
- Jan 21, 2006, 1:18:19 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world_data.cc
r6626 r6634 72 72 this->setClassID(CL_GAME_WORLD_DATA, "GameWorldData"); 73 73 74 this->localPlayer = NULL;75 this->localCamera = NULL;76 77 74 this->glmis = NULL; 78 75 … … 283 280 if( this->sky != NULL) 284 281 this->localCamera->addChild(this->sky); 285 286 /* sound loading */287 this->music = NULL;288 //(OggPlayer*)ResourceManager::getInstance()->load("sound/00-luke_grey_-_hypermode.ogg", OGG, RP_LEVEL);289 //music->playback();290 282 SoundEngine::getInstance()->setListener(this->localCamera); 291 283 } … … 310 302 } 311 303 304 305 void GameWorldData::setSoundTrack(const char* name) 306 { 307 PRINTF(3)("Setting Sound Track to %s\n", name); 308 this->music = (OggPlayer*)ResourceManager::getInstance()->load(name, OGG, RP_LEVEL); 309 } 310 311
Note: See TracChangeset
for help on using the changeset viewer.