Fixed playsound event. Added remove sounds OnComponentsRemove only when stopped playing.

This commit is contained in:
Stiffly
2014-05-27 00:36:54 +02:00
parent f4cd50b741
commit 3b96be2162
7 changed files with 104 additions and 80 deletions
+4 -3
View File
@@ -42,11 +42,12 @@ void InputManager::Update(double dt)
}
}
if(m_CurrentKeyState[GLFW_KEY_BACKSPACE])
if(m_CurrentKeyState[GLFW_KEY_Z])
{
Events::PlaySound e;
e.Resource = "Sounds/WUB.mp3";
e.Emitter = 2;
e.Resource = "Sounds/BGM/MainMenu.mp3";
e.Emitter = 66;
e.Loop = true;
EventBroker->Publish(e);
}