Changeset 11022
- Timestamp:
- Jan 2, 2016, 9:50:26 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/portals/PortalEndPoint.cc
r11021 r11022 64 64 this->portalSound_->setLooping(false); 65 65 this->attach(this->portalSound_); 66 this->portalSound_->setSource("sounds/Weapon_HsW01.ogg"); //TODO: change sound file 66 this->portalSound_->setSource("sounds/Portal_1_cut.ogg"); 67 this->portalSound_->setVolume(1.0f); 67 68 } 68 69 } … … 171 172 entity->setVelocity(this->getWorldOrientation() * entity->getVelocity()); 172 173 //play Sound 173 if ( this->portalSound_ && !(this->portalSound_->isPlaying()))174 if (this->portalSound_) 174 175 { 176 if (this->portalSound_->isPlaying()) 177 this->portalSound_->stop(); 175 178 this->portalSound_->play(); 176 179 }
Note: See TracChangeset
for help on using the changeset viewer.