Changeset 9805 in orxonox.OLD for branches/new_class_id/src/world_entities/weather_effects/rain_effect.cc
- Timestamp:
- Sep 24, 2006, 3:21:12 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/weather_effects/rain_effect.cc
r9760 r9805 19 19 #include "util/loading/load_param.h" 20 20 #include "util/loading/factory.h" 21 #include " util/loading/resource_manager.h"21 #include "sound/resource_sound_buffer.h" 22 22 23 23 #include "glincl.h" … … 64 64 65 65 //load rain sound 66 if (this->rainBuffer != NULL) 67 ResourceManager::getInstance()->unload(this->rainBuffer); 68 this->rainBuffer = (OrxSound::SoundBuffer*)ResourceManager::getInstance()->load("sound/atmosphere/rain.wav", WAV); 66 this->rainBuffer = OrxSound::ResourceSoundBuffer("sound/atmosphere/rain.wav"); 69 67 70 68 //load wind sound 71 69 if (this->rainWindForce != 0) { 72 if (this->windBuffer != NULL) 73 ResourceManager::getInstance()->unload(this->windBuffer); 74 this->windBuffer = (OrxSound::SoundBuffer*)ResourceManager::getInstance()->load("sound/atmosphere/wind.wav", WAV); 70 this->windBuffer = OrxSound::ResourceSoundBuffer("sound/atmosphere/wind.wav"); 75 71 } 76 72 … … 86 82 RainEffect::~RainEffect() { 87 83 this->deactivate(); 88 89 if (this->rainBuffer != NULL)90 ResourceManager::getInstance()->unload(this->rainBuffer);91 92 if (this->windBuffer != NULL)93 ResourceManager::getInstance()->unload(this->windBuffer);94 84 } 95 85 … … 101 91 this->rainParticles = NULL; 102 92 this->emitter = NULL; 103 this->rainBuffer = NULL;104 this->windBuffer = NULL;105 93 this->lightMan = NULL; 106 94
Note: See TracChangeset
for help on using the changeset viewer.