Changeset 7647 in orxonox.OLD for branches/atmospheric_engine/src/world_entities/space_ships/helicopter.cc
- Timestamp:
- May 17, 2006, 1:40:05 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/world_entities/space_ships/helicopter.cc
r7337 r7647 25 25 26 26 #include "util/loading/factory.h" 27 #include "util/loading/resource_manager.h" 28 27 29 #include "key_mapper.h" 28 30 #include "event_handler.h" … … 96 98 this->getWeaponManager().changeWeaponConfig(1); 97 99 dynamic_cast<Element2D*>(this->getWeaponManager().getFixedTarget())->setVisibility( false); 100 101 //load sound 102 if (this->chopperBuffer != NULL) 103 ResourceManager::getInstance()->unload(this->chopperBuffer); 104 this->chopperBuffer = (SoundBuffer*)ResourceManager::getInstance()->load("sound/chopper.wav", WAV); 105 98 106 } 99 107 … … 205 213 State::getCameraNode()->setParentSoft(this->getWeaponManager().getFixedTarget()); 206 214 State::getCameraTargetNode()->setParentSoft(this->getWeaponManager().getFixedTarget()); 215 216 this->soundSource.loop(this->chopperBuffer); 217 PRINTF(0)( "Playing ChopperSound\n" ); 207 218 } 208 219
Note: See TracChangeset
for help on using the changeset viewer.