Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2009, 8:49:33 AM (14 years ago)
Author:
scheusso
Message:

further network fixes
changed screenshot format from jpeg to tiff (lossless)

File:
1 edited

Legend:

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

    r6295 r6313  
    8989        this->addCameraPosition(camPosition);
    9090
    91         this->defSndWpnEngine_ = new WorldSound(this);
    92         this->defSndWpnEngine_->setLooping(true);
    93         this->defSndWpnEngine_->setSource("sounds/Rocket_engine.ogg");
    94         this->attach(defSndWpnEngine_);
    95 
    96         this->defSndWpnLaunch_ = new WorldSound(this);
    97         this->defSndWpnLaunch_->setLooping(false);
    98         this->defSndWpnLaunch_->setSource("sounds/Rocket_launch.ogg");
    99         this->attach(defSndWpnLaunch_);
     91        if( GameMode::isMaster() )
     92        {
     93            this->defSndWpnEngine_ = new WorldSound(this);
     94            this->defSndWpnEngine_->setLooping(true);
     95            this->defSndWpnEngine_->setSource("sounds/Rocket_engine.ogg");
     96            this->attach(defSndWpnEngine_);
     97
     98            this->defSndWpnLaunch_ = new WorldSound(this);
     99            this->defSndWpnLaunch_->setLooping(false);
     100            this->defSndWpnLaunch_->setSource("sounds/Rocket_launch.ogg");
     101            this->attach(defSndWpnLaunch_);
     102        }
     103        else
     104        {
     105            this->defSndWpnEngine_ = 0;
     106            this->defSndWpnLaunch_ = 0;
     107        }
    100108    }
    101109
Note: See TracChangeset for help on using the changeset viewer.