Skip to content

Commit

Permalink
Fix voice icons on scoreboard displaying the status of voice icons fr…
Browse files Browse the repository at this point in the history
…om someone else, and asserting when the 22nd player talks.
  • Loading branch information
AfterShockFF committed Sep 11, 2016
1 parent c071828 commit 8733f74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game_shared/voice_status.cpp
Expand Up @@ -326,9 +326,9 @@ int CVoiceStatus::GetSpeakerStatus(int entindex)
if ( !engine->GetPlayerInfo( entindex, &pi ) )
return 0;

bool bTalking = !!m_VoicePlayers[entindex];
bool bTalking = !!m_VoicePlayers[entindex-1];
bool bBanned = m_BanMgr.GetPlayerBan(pi.guid);
bool bNeverSpoken = !m_VoiceEnabledPlayers[entindex];
bool bNeverSpoken = !m_VoiceEnabledPlayers[entindex-1];

if (bBanned)
return VOICE_BANNED;
Expand Down

0 comments on commit 8733f74

Please sign in to comment.