Core/Event: Fix Brewfest Music

Was only playing the same song over and over again.

(cherry picked from commit 3eacc25e5d)
This commit is contained in:
Kittnz
2016-10-06 20:14:53 +02:00
committed by joschiwald
parent 2a57471c85
commit 2a3a68dfab

View File

@@ -1245,6 +1245,9 @@ public:
struct go_brewfest_musicAI : public GameObjectAI
{
uint32 rnd;
uint32 musicTime = 1000;
go_brewfest_musicAI(GameObject* go) : GameObjectAI(go)
{
_events.ScheduleEvent(EVENT_BM_SELECT_MUSIC, 1000);
@@ -1254,8 +1257,6 @@ public:
void UpdateAI(uint32 diff) override
{
_events.Update(diff);
uint32 rnd;
uint32 musicTime = 1000;
while (uint32 eventId = _events.ExecuteEvent())
{
switch (eventId)