- Timestamp:
- Nov 22, 2009, 4:01:16 PM (16 years ago)
- Location:
- code/branches/presentation2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2
- Property svn:mergeinfo changed
/code/branches/sound3 (added) merged: 5941,5943,5946,5954,5956-5957,5962,5982,6031,6046,6069-6072,6074,6088,6093,6097,6100,6102
- Property svn:mergeinfo changed
-
code/branches/presentation2/src/orxonox/sound/WorldSound.cc
r5929 r6117 53 53 { 54 54 SUPER(WorldSound, XMLPort, xmlelement, mode); 55 XMLPortParamExtern(WorldSound, BaseSound, this, "source", setSource, getSource, xmlelement, mode); 56 XMLPortParamExtern(WorldSound, BaseSound, this, "loop", setLoop, getLoop, xmlelement, mode); 57 XMLPortParamExtern(WorldSound, BaseSound, this, "playOnLoad", setPlayOnLoad, getPlayOnLoad, xmlelement, mode); 55 BaseSound::XMLPortExtern(xmlelement, mode); 58 56 } 59 57 … … 89 87 } 90 88 89 void WorldSound::changedActivity() 90 { 91 SUPER(WorldSound, changedActivity); 92 if (this->isActive()) 93 this->play(); 94 else 95 this->stop(); 96 } 91 97 }
Note: See TracChangeset
for help on using the changeset viewer.