Core/Event: Fix Brewfest Music

Was only playing the same song over and over again.
This commit is contained in:
Kittnz
2016-10-06 20:14:53 +02:00
committed by Aokromes
parent 3fe3f32d15
commit cd22b8ea7a

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)