From bfa30daadb0a3ce2eae6259d1c4cf9e2bb0fa5a5 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Fri, 18 Dec 2015 15:20:59 +0600 Subject: [PATCH] update voice mask for spectator/unassigned etc --- regamedll/game_shared/voice_gamemgr.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/regamedll/game_shared/voice_gamemgr.cpp b/regamedll/game_shared/voice_gamemgr.cpp index ad040a0d..78bbca67 100644 --- a/regamedll/game_shared/voice_gamemgr.cpp +++ b/regamedll/game_shared/voice_gamemgr.cpp @@ -171,7 +171,11 @@ void CVoiceGameMgr::UpdateMasks(void) { CBaseEntity *pEnt = UTIL_PlayerByIndex(iClient + 1); - if (!pEnt || !pEnt->IsPlayer()) + if (!pEnt +#ifndef REGAMEDLL_FIXES + || !pEnt->IsPlayer() +#endif // REGAMEDLL_FIXES + ) continue; CBasePlayer *pPlayer = (CBasePlayer *)pEnt;