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