The main menu music would not start again when you returned to the main menu.

This commit is contained in:
stiffly
2016-03-13 00:16:55 +01:00
parent 1e7f6941ba
commit 20d46f63c8
2 changed files with 23 additions and 1 deletions
+3
View File
@@ -30,6 +30,7 @@
#include "../Engine/Core/EPause.h"
#include "../Engine/Core/EComponentAttached.h"
#include "../Core/EPlayerSpawned.h"
#include "../Engine/Network/EPlayerDisconnected.h"
typedef std::pair<ALuint, std::vector<ALuint>> QueuedBuffers;
@@ -139,6 +140,8 @@ private:
bool OnPlayQueueOnEntity(const Events::PlayQueueOnEntity &e);
EventRelay<SoundManager, Events::ChangeBGM> m_EChangeBGM;
bool OnChangeBGM(const Events::ChangeBGM &e);
EventRelay<SoundManager, Events::PlayerDisconnected> m_EplayerDisconnected;
bool OnPlayerDisconnected(const Events::PlayerDisconnected& e);
};