Initialize LLListener_OpenAL::mRolloffFactor just to be safe.

This commit is contained in:
Shyotl
2013-11-18 09:55:15 -06:00
parent fc4f0eaa82
commit 2badc1c79c
2 changed files with 8 additions and 0 deletions

View File

@@ -39,6 +39,13 @@ LLListener_OpenAL::~LLListener_OpenAL()
{
}
LLListener_OpenAL::init()
{
// do inherited
LLListener::init();
mRolloffFactor = 1.0f;
}
void LLListener_OpenAL::translate(LLVector3 offset)
{
//llinfos << "LLListener_OpenAL::translate() : " << offset << llendl;

View File

@@ -38,6 +38,7 @@ class LLListener_OpenAL : public LLListener
public:
LLListener_OpenAL();
virtual ~LLListener_OpenAL();
virtual void init();
virtual void translate(LLVector3 offset);
virtual void setPosition(LLVector3 pos);