mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-05 19:45:33 +03:00
Merge pull request #35 from WPMGPRoSToTeMa/getclientlisteningfix
Fixed #37: Voice_GetClientListening bugfix
This commit is contained in:
commit
646171f579
@ -658,7 +658,11 @@ qboolean Voice_GetClientListening(int iReceiver, int iSender)
|
|||||||
if (iReceiver < 0 || iSender < 0 || iReceiver >= g_psvs.maxclients || iSender >= g_psvs.maxclients)
|
if (iReceiver < 0 || iSender < 0 || iReceiver >= g_psvs.maxclients || iSender >= g_psvs.maxclients)
|
||||||
return 0;
|
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);
|
return (1 << iReceiver) & (g_psvs.clients[iSender].m_VoiceStreams[iReceiver >> 5] != 0);
|
||||||
|
#endif // REHLDS_FIXES
|
||||||
}
|
}
|
||||||
|
|
||||||
/* <8d1d0> ../engine/sys_dll.c:1090 */
|
/* <8d1d0> ../engine/sys_dll.c:1090 */
|
||||||
|
Loading…
Reference in New Issue
Block a user