- Timestamp:
- Dec 19, 2009, 12:07:32 AM (15 years ago)
- Location:
- code/branches/presentation2/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/modules/weapons/projectiles/Rocket.cc
r6378 r6381 122 122 if ( this->defSndWpnEngine_->isPlaying() ) 123 123 this->defSndWpnEngine_->stop(); 124 delete this->defSndWpnEngine_;124 this->defSndWpnEngine_->destroy(); 125 125 } 126 126 if ( this->defSndWpnLaunch_ ) … … 128 128 if ( this->defSndWpnLaunch_->isPlaying()) 129 129 this->defSndWpnLaunch_->stop(); 130 delete this->defSndWpnLaunch_;130 this->defSndWpnLaunch_->destroy(); 131 131 } 132 132 } -
code/branches/presentation2/src/orxonox/Scene.cc
r6372 r6381 114 114 XMLPortParam(Scene, "ambientlight", setAmbientLight, getAmbientLight, xmlelement, mode).defaultValues(ColourValue(0.2f, 0.2f, 0.2f, 1.0f)); 115 115 XMLPortParam(Scene, "shadow", setShadow, getShadow, xmlelement, mode).defaultValues(true); 116 XMLPortParam(Scene, "soundReferenceDistance", setSoundReferenceDistance, getSoundReferenceDistance, xmlelement, mode) .defaultValues(true);116 XMLPortParam(Scene, "soundReferenceDistance", setSoundReferenceDistance, getSoundReferenceDistance, xmlelement, mode); 117 117 118 118 XMLPortParam(Scene, "gravity", setGravity, getGravity, xmlelement, mode); -
code/branches/presentation2/src/orxonox/items/MultiStateEngine.cc
r6329 r6381 88 88 (*it2)->destroy(); 89 89 if (this->defEngineSndNormal_) 90 delete this->defEngineSndNormal_;90 this->defEngineSndNormal_->destroy(); 91 91 if (this->defEngineSndBoost_) 92 delete this->defEngineSndBoost_;92 this->defEngineSndBoost_->destroy(); 93 93 } 94 94 if (this->lua_) -
code/branches/presentation2/src/orxonox/weaponsystem/WeaponMode.cc
r6314 r6381 84 84 WeaponMode::~WeaponMode() 85 85 { 86 if (this->isInitialized())87 { 88 if ( this->defSndWpnFire_)89 delete this->defSndWpnFire_;86 if (this->isInitialized()) 87 { 88 if (this->defSndWpnFire_) 89 this->defSndWpnFire_->destroy(); 90 90 } 91 91 }
Note: See TracChangeset
for help on using the changeset viewer.