Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7848


Ignore:
Timestamp:
Feb 10, 2011, 6:05:08 PM (13 years ago)
Author:
landauf
Message:

fixed "sound volume out of range" warning when firing a rocked. max volume is 1.0f.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/weapons/projectiles/Rocket.cc

    r7163 r7848  
    8888            this->defSndWpnEngine_->setLooping(true);
    8989            this->defSndWpnEngine_->setSource("sounds/Rocket_engine.ogg");
    90             this->defSndWpnEngine_->setVolume(100);
     90            this->defSndWpnEngine_->setVolume(1.0f);
    9191            this->attach(defSndWpnEngine_);
    9292
     
    9494            this->defSndWpnLaunch_->setLooping(false);
    9595            this->defSndWpnLaunch_->setSource("sounds/Rocket_launch.ogg");
    96             this->defSndWpnLaunch_->setVolume(100);
     96            this->defSndWpnLaunch_->setVolume(1.0f);
    9797            this->attach(defSndWpnLaunch_);
    9898        }
     
    238238//         }
    239239    }
    240    
     240
    241241    void Rocket::destructionEffect()
    242242    {
     
    252252            effect2 = new ParticleSpawner(static_cast<BaseObject*>(this->getScene().get()));
    253253        }
    254        
     254
    255255        effect1->setPosition(this->getPosition());
    256256        effect1->setOrientation(this->getOrientation());
     
    258258        effect1->setSource("Orxonox/explosion4");
    259259        effect1->setLifetime(2.0f);
    260        
     260
    261261        effect2->setPosition(this->getPosition());
    262262        effect2->setOrientation(this->getOrientation());
Note: See TracChangeset for help on using the changeset viewer.