update voice mask for spectator/unassigned etc

This commit is contained in:
s1lentq 2015-12-18 15:20:59 +06:00
parent 0627574b6f
commit bfa30daadb

View File

@ -171,7 +171,11 @@ void CVoiceGameMgr::UpdateMasks(void)
{ {
CBaseEntity *pEnt = UTIL_PlayerByIndex(iClient + 1); CBaseEntity *pEnt = UTIL_PlayerByIndex(iClient + 1);
if (!pEnt || !pEnt->IsPlayer()) if (!pEnt
#ifndef REGAMEDLL_FIXES
|| !pEnt->IsPlayer()
#endif // REGAMEDLL_FIXES
)
continue; continue;
CBasePlayer *pPlayer = (CBasePlayer *)pEnt; CBasePlayer *pPlayer = (CBasePlayer *)pEnt;