From 69fd6eff17a051b42477be624a4eac224e157216 Mon Sep 17 00:00:00 2001 From: WPMGPRoSToTeMa Date: Mon, 15 Jun 2015 18:35:38 +0300 Subject: [PATCH] Voice_GetClientListening bugfix --- rehlds/engine/sys_dll.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rehlds/engine/sys_dll.cpp b/rehlds/engine/sys_dll.cpp index 5eae3c7..dd0401b 100644 --- a/rehlds/engine/sys_dll.cpp +++ b/rehlds/engine/sys_dll.cpp @@ -658,7 +658,11 @@ qboolean Voice_GetClientListening(int iReceiver, int iSender) if (iReceiver < 0 || iSender < 0 || iReceiver >= g_psvs.maxclients || iSender >= g_psvs.maxclients) return 0; +#ifdef REHLDS_FIXES + return (g_psvs.clients[iSender].m_VoiceStreams[iReceiver >> 5] & (1 << iReceiver)) != 0; +#else // REHLDS_FIXES return (1 << iReceiver) & (g_psvs.clients[iSender].m_VoiceStreams[iReceiver >> 5] != 0); +#endif // REHLDS_FIXES } /* <8d1d0> ../engine/sys_dll.c:1090 */