Play highlight sound on vote too when authed

This commit is contained in:
def 2020-12-18 18:29:43 +01:00
parent 567f0aa6d4
commit 6586ab20bc

View file

@ -4,6 +4,7 @@
#include "voting.h"
#include <base/vmath.h>
#include <game/client/components/sounds.h>
#include <game/client/render.h>
#include <game/generated/protocol.h>
@ -200,6 +201,7 @@ void CVoting::OnMessage(int MsgType, void *pRawMsg)
char aBuf[512];
str_format(aBuf, sizeof(aBuf), "%s (%s)", m_aDescription, m_aReason);
Client()->Notify("DDNet Vote", aBuf);
m_pClient->m_pSounds->Play(CSounds::CHN_GUI, SOUND_CHAT_HIGHLIGHT, 0);
}
}
}