Skip to content

Commit

Permalink
Fix speak detect
Browse files Browse the repository at this point in the history
  • Loading branch information
Garey Akhmetshin committed Dec 12, 2021
1 parent 027c125 commit 4219ef4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion revoice/src/api.h
Expand Up @@ -75,7 +75,7 @@ class audio_wave_play
PLAY_DONE
};
play_state state;
uint32_t senderClientIndex;
uint8_t senderClientIndex;
std::unordered_set<size_t> receivers;
bool auto_delete = false;
float flPlayPos8k;
Expand Down
2 changes: 1 addition & 1 deletion revoice/src/revoice_main.cpp
Expand Up @@ -107,9 +107,9 @@ void SV_ParseVoiceData_emu(IGameClient *cl)
return;
if (!srcPlayer->IsSpeaking())
{
srcPlayer->Speak();
g_OnClientStartSpeak(cl->GetId());
}
srcPlayer->Speak();
srcPlayer->SetLastVoiceTime(g_RehldsSv->GetTime());
srcPlayer->IncreaseVoiceRate(nDataLength);

Expand Down

0 comments on commit 4219ef4

Please sign in to comment.