mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Play highlight sound on vote too when authed
This commit is contained in:
parent
567f0aa6d4
commit
6586ab20bc
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
#include "voting.h"
|
#include "voting.h"
|
||||||
#include <base/vmath.h>
|
#include <base/vmath.h>
|
||||||
|
#include <game/client/components/sounds.h>
|
||||||
#include <game/client/render.h>
|
#include <game/client/render.h>
|
||||||
#include <game/generated/protocol.h>
|
#include <game/generated/protocol.h>
|
||||||
|
|
||||||
|
@ -200,6 +201,7 @@ void CVoting::OnMessage(int MsgType, void *pRawMsg)
|
||||||
char aBuf[512];
|
char aBuf[512];
|
||||||
str_format(aBuf, sizeof(aBuf), "%s (%s)", m_aDescription, m_aReason);
|
str_format(aBuf, sizeof(aBuf), "%s (%s)", m_aDescription, m_aReason);
|
||||||
Client()->Notify("DDNet Vote", aBuf);
|
Client()->Notify("DDNet Vote", aBuf);
|
||||||
|
m_pClient->m_pSounds->Play(CSounds::CHN_GUI, SOUND_CHAT_HIGHLIGHT, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue