[Orxonox-commit 1420] r6138 - code/branches/presentation2/src/orxonox/sound
landauf at orxonox.net
landauf at orxonox.net
Tue Nov 24 03:16:12 CET 2009
Author: landauf
Date: 2009-11-24 03:16:12 +0100 (Tue, 24 Nov 2009)
New Revision: 6138
Modified:
code/branches/presentation2/src/orxonox/sound/SoundManager.cc
Log:
removed superfluous "it" from two for loops which caused two warnings
Modified: code/branches/presentation2/src/orxonox/sound/SoundManager.cc
===================================================================
--- code/branches/presentation2/src/orxonox/sound/SoundManager.cc 2009-11-24 02:11:31 UTC (rev 6137)
+++ code/branches/presentation2/src/orxonox/sound/SoundManager.cc 2009-11-24 02:16:12 UTC (rev 6138)
@@ -262,7 +262,7 @@
}
// FADE IN
- for (std::list<AmbientSound*>::iterator it= this->fadeInList_.begin(); it != this->fadeInList_.end(); it)
+ for (std::list<AmbientSound*>::iterator it= this->fadeInList_.begin(); it != this->fadeInList_.end(); )
{
if ((*it)->getVolume() + this->crossFadeStep_*dt > 1.0f)
{
@@ -277,7 +277,7 @@
}
// FADE OUT
- for (std::list<AmbientSound*>::iterator it = this->fadeOutList_.begin(); it != this->fadeOutList_.end(); it)
+ for (std::list<AmbientSound*>::iterator it = this->fadeOutList_.begin(); it != this->fadeOutList_.end(); )
{
if ((*it)->getVolume() - this->crossFadeStep_*dt < 0.0f)
{
More information about the Orxonox-commit
mailing list