Changeset 7163 for code/trunk/src/orxonox/weaponsystem
- Timestamp:
- Aug 11, 2010, 8:55:13 AM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/weaponsystem/WeaponMode.cc
r6417 r7163 274 274 return BLANKSTRING; 275 275 } 276 277 void WeaponMode::setDefaultSoundWithVolume(const std::string& soundPath, const float soundVolume){ 278 if (this->defSndWpnFire_) { 279 this->defSndWpnFire_->setSource(soundPath); 280 this->defSndWpnFire_->setVolume(soundVolume); 281 } 282 } 283 276 284 } -
code/trunk/src/orxonox/weaponsystem/WeaponMode.h
r6417 r7163 55 55 void setDefaultSound(const std::string& soundPath); 56 56 const std::string& getDefaultSound(); 57 57 void setDefaultSoundWithVolume(const std::string& soundPath, const float soundVolume); 58 58 59 59 // Munition -
code/trunk/src/orxonox/weaponsystem/WeaponSystem.cc
r6417 r7163 214 214 Weapon* weapon = 0; 215 215 while ((weapon = wPack->getWeapon(i++))) 216 weapon->getWeaponSlot()->removeWeapon(); 216 if (weapon->getWeaponSlot()) 217 weapon->getWeaponSlot()->removeWeapon(); 217 218 218 219 // Remove all added links from the WeaponSets
Note: See TracChangeset
for help on using the changeset viewer.