diff --git a/revoice/src/api.h b/revoice/src/api.h index 80a0327..eac7c43 100644 --- a/revoice/src/api.h +++ b/revoice/src/api.h @@ -75,7 +75,7 @@ class audio_wave_play PLAY_DONE }; play_state state; - uint32_t senderClientIndex; + uint8_t senderClientIndex; std::unordered_set receivers; bool auto_delete = false; float flPlayPos8k; diff --git a/revoice/src/revoice_main.cpp b/revoice/src/revoice_main.cpp index 3e1500e..33d4782 100644 --- a/revoice/src/revoice_main.cpp +++ b/revoice/src/revoice_main.cpp @@ -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);