mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user