Changeset 9805 in orxonox.OLD for branches/new_class_id/src/world_entities/effects
- Timestamp:
- Sep 24, 2006, 3:21:12 PM (19 years ago)
- Location:
- branches/new_class_id/src/world_entities/effects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/effects/lightning_bolt.cc
r9716 r9805 20 20 #include "material.h" 21 21 22 #include " util/loading/resource_manager.h"22 #include "sound/resource_sound_buffer.h" 23 23 24 24 … … 56 56 this->seedTime = 4.0f; 57 57 58 this->soundSource = NULL;59 this->thunderBuffer = NULL;60 61 58 this->soundSource.setSourceNode(this); 62 59 63 //load sound 64 if (this->thunderBuffer != NULL) 65 ResourceManager::getInstance()->unload(this->thunderBuffer); 66 this->thunderBuffer = (OrxSound::SoundBuffer*)ResourceManager::getInstance()->load("sound/atmosphere/thunder.wav", WAV); 60 this->thunderBuffer = OrxSound::ResourceSoundBuffer("sound/atmosphere/thunder.wav"); 67 61 } 68 62 -
branches/new_class_id/src/world_entities/effects/lightning_bolt.h
r9715 r9805 52 52 53 53 OrxSound::SoundSource soundSource; 54 OrxSound::SoundBuffer *thunderBuffer;54 OrxSound::SoundBuffer thunderBuffer; 55 55 }; 56 56
Note: See TracChangeset
for help on using the changeset viewer.