Skip to content

Commit

Permalink
Add sounds for quick chat
Browse files Browse the repository at this point in the history
  • Loading branch information
KJeff01 committed Apr 14, 2024
1 parent a2e1212 commit 2a60e34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hci/quickchat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include "lib/framework/frame.h"
#include "lib/framework/math_ext.h"
#include "lib/framework/wztime.h"
#include "lib/sound/audio.h"
#include "lib/sound/audio_id.h"
#include "quickchat.h"
#include "teamstrategy.h"
#include "lib/widget/widgint.h"
Expand Down Expand Up @@ -3060,10 +3062,12 @@ bool recvQuickChat(NETQUEUE queue)
if (isInGame)
{
addQuickChatMessageToConsole(msgEnumVal, sender, targeting);
audio_PlayTrack(ID_SOUND_MESSAGEEND);
}
else
{
addLobbyQuickChatMessageToConsole(msgEnumVal, sender, targeting);
audio_PlayTrack(FE_AUDIO_MESSAGEEND);
}
}
else
Expand Down

0 comments on commit 2a60e34

Please sign in to comment.