Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2009, 12:07:32 AM (15 years ago)
Author:
rgrieder
Message:

Copy&paste for dummies in Scene.cc (caused fire sound to be very quiet).
And replaced a few sound deletes with destroy().

Location:
code/branches/presentation2/src/orxonox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/Scene.cc

    r6372 r6381  
    114114        XMLPortParam(Scene, "ambientlight", setAmbientLight, getAmbientLight, xmlelement, mode).defaultValues(ColourValue(0.2f, 0.2f, 0.2f, 1.0f));
    115115        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);
    117117
    118118        XMLPortParam(Scene, "gravity", setGravity, getGravity, xmlelement, mode);
  • code/branches/presentation2/src/orxonox/items/MultiStateEngine.cc

    r6329 r6381  
    8888                        (*it2)->destroy();
    8989                if (this->defEngineSndNormal_)
    90                     delete this->defEngineSndNormal_;
     90                    this->defEngineSndNormal_->destroy();
    9191                if (this->defEngineSndBoost_)
    92                     delete this->defEngineSndBoost_;
     92                    this->defEngineSndBoost_->destroy();
    9393            }
    9494            if (this->lua_)
  • code/branches/presentation2/src/orxonox/weaponsystem/WeaponMode.cc

    r6314 r6381  
    8484    WeaponMode::~WeaponMode()
    8585    {
    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();
    9090        }
    9191    }
Note: See TracChangeset for help on using the changeset viewer.