Changeset 6827 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Jan 29, 2006, 2:10:48 PM (19 years ago)
- Location:
- trunk/src/story_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r6780 r6827 366 366 PNode::getNullParent()->updateNode (this->dtS); 367 367 SoundEngine::getInstance()->update(); 368 //music->update(); 368 369 if (this->dataTank->music != NULL) 370 this->dataTank->music->update(); 369 371 } 370 372 … … 435 437 436 438 engine->draw(); 437 438 /* final draw command */439 439 } 440 440 -
trunk/src/story_entities/game_world_data.cc
r6815 r6827 280 280 LoadParamXML(root, "GraphicsEngine", GraphicsEngine::getInstance(), GraphicsEngine, loadParams); 281 281 282 LoadParam(root, "Music", this, GameWorldData, setSoundTrack); 283 282 284 // LoadParamXML(root, "ParticleEngine", ParticleEngine::getInstance(), ParticleEngine, loadParams); 283 285 //LoadParamXML(root, "PhysicsEngine", PhysicsEngine::getInstance(), PhysicsEngine, loadParams); … … 311 313 void GameWorldData::setSoundTrack(const char* name) 312 314 { 315 if (this->music != NULL) 316 delete this->music; 317 313 318 PRINTF(3)("Setting Sound Track to %s\n", name); 314 319 this->music = (OggPlayer*)ResourceManager::getInstance()->load(name, OGG, RP_LEVEL); -
trunk/src/story_entities/game_world_data.h
r6634 r6827 52 52 virtual ErrorMessage unloadScene(); 53 53 54 55 54 public: 56 55 GLMenuImageScreen* glmis; //!< The Level-Loader Display
Note: See TracChangeset
for help on using the changeset viewer.