[Orxonox-commit 3238] r7929 - code/branches/usability/src/orxonox/sound
landauf at orxonox.net
landauf at orxonox.net
Sun Feb 20 15:11:30 CET 2011
Author: landauf
Date: 2011-02-20 15:11:30 +0100 (Sun, 20 Feb 2011)
New Revision: 7929
Modified:
code/branches/usability/src/orxonox/sound/AmbientSound.cc
Log:
forgot to call RegisterObject() for AmbientSound - music now again instantly changes volume if changed in audio menu
Modified: code/branches/usability/src/orxonox/sound/AmbientSound.cc
===================================================================
--- code/branches/usability/src/orxonox/sound/AmbientSound.cc 2011-02-20 11:42:28 UTC (rev 7928)
+++ code/branches/usability/src/orxonox/sound/AmbientSound.cc 2011-02-20 14:11:30 UTC (rev 7929)
@@ -28,6 +28,7 @@
#include "AmbientSound.h"
+#include "core/CoreIncludes.h"
#include "core/GameMode.h"
#include "core/Resource.h"
#include "SoundManager.h"
@@ -37,6 +38,8 @@
AmbientSound::AmbientSound()
: bPlayOnLoad_(false)
{
+ RegisterObject(AmbientSound);
+
// Ambient sounds always fade in
this->setVolume(0);
}
More information about the Orxonox-commit
mailing list