Changeset 9234 in orxonox.OLD for branches/presentation/src/world_entities/space_ships/hover.cc
- Timestamp:
- Jul 5, 2006, 2:31:04 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/space_ships/hover.cc
r9230 r9234 25 25 26 26 #include "util/loading/factory.h" 27 #include "util/loading/resource_manager.h"27 //#include "util/loading/resource_manager.h" 28 28 29 29 #include "key_mapper.h" … … 52 52 { 53 53 this->setPlayer(NULL); 54 55 //if (this->hoverBuffer != NULL) 56 // ResourceManager::getInstance()->unload(this->hoverBuffer); 54 57 } 55 58 … … 71 74 this->loadParams(doc.RootElement()); 72 75 73 //load sound74 if (this->hoverBuffer != NULL)75 ResourceManager::getInstance()->unload(this->hoverBuffer);76 this->hoverBuffer = (OrxSound::SoundBuffer*)ResourceManager::getInstance()->load("sound/engine/hover.wav", WAV);76 //load sound 77 //if (this->hoverBuffer != NULL) 78 // ResourceManager::getInstance()->unload(this->hoverBuffer); 79 //this->hoverBuffer = (OrxSound::SoundBuffer*)ResourceManager::getInstance()->load("sound/engine/hover.wav", WAV); 77 80 78 81 } … … 116 119 { 117 120 118 this->hitEntity = NULL;119 this->hoverBuffer = NULL;121 //this->hitEntity = NULL; 122 //this->hoverBuffer = NULL; 120 123 121 124 // this->setRelDir(Quaternion(M_PI, Vector(1,0,0))); … … 229 232 State::getCameraTargetNode()->setParentSoft(&this->cameraNode); 230 233 231 this->soundSource.play(this->hoverBuffer, 0.3f, true);234 //this->soundSource.play(this->hoverBuffer, 0.3f, true); 232 235 233 236 }
Note: See TracChangeset
for help on using the changeset viewer.