Fix voice checks for spectators (#116)

This commit is contained in:
resobatata 2017-03-02 00:09:43 +04:00 committed by s1lentq
parent cd96c9133d
commit 6186ae56c8

View File

@ -193,7 +193,11 @@ void EXT_FUNC CHalfLifeMultiplay::__API_VHOOK(ServerDeactivate)()
bool CCStrikeGameMgrHelper::__MAKE_VHOOK(CanPlayerHearPlayer)(CBasePlayer *pListener, CBasePlayer *pSender)
{
if (!pSender->IsPlayer() || pListener->m_iTeam != pSender->m_iTeam)
if (
#ifndef REGAMEDLL_FIXES
!pSender->IsPlayer() ||
#endif
pListener->m_iTeam != pSender->m_iTeam)
{
return false;
}