Fix bug with radio commands (#480)

* Fix bug with radio commands
This commit is contained in:
Dmitry 2019-12-26 16:36:38 +07:00 committed by Dmitry Novikov
parent 7b0dab916d
commit 7983a9d929

View File

@ -394,10 +394,10 @@ void EXT_FUNC CBasePlayer::__API_HOOK(Radio)(const char *msg_id, const char *msg
if (iSpecMode != OBS_CHASE_LOCKED && iSpecMode != OBS_CHASE_FREE && iSpecMode != OBS_IN_EYE) if (iSpecMode != OBS_CHASE_LOCKED && iSpecMode != OBS_CHASE_FREE && iSpecMode != OBS_IN_EYE)
continue; continue;
if (!FNullEnt(pPlayer->m_hObserverTarget)) if (FNullEnt(pPlayer->m_hObserverTarget))
continue; continue;
if (m_hObserverTarget && m_hObserverTarget->m_iTeam == m_iTeam) if (pPlayer->m_hObserverTarget && pPlayer->m_hObserverTarget->m_iTeam == m_iTeam)
{ {
bSend = true; bSend = true;
} }