mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-08-10 16:54:27 +02:00
Fix CVoiceStatus::UpdateServerState not sending the correct vban state from the client
This commit is contained in:
@@ -378,7 +378,7 @@ void CVoiceStatus::UpdateServerState(bool bForce)
|
|||||||
|
|
||||||
player_info_t pi;
|
player_info_t pi;
|
||||||
|
|
||||||
if ( !engine->GetPlayerInfo( i+1, &pi ) )
|
if ( !engine->GetPlayerInfo( playerIndex+1, &pi ) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ( m_BanMgr.GetPlayerBan( pi.guid ) )
|
if ( m_BanMgr.GetPlayerBan( pi.guid ) )
|
||||||
@@ -588,4 +588,4 @@ void CVoiceStatus::SetHeadLabelMaterial( const char *pszMaterial )
|
|||||||
|
|
||||||
m_pHeadLabelMaterial = materials->FindMaterial( pszMaterial, TEXTURE_GROUP_VGUI );
|
m_pHeadLabelMaterial = materials->FindMaterial( pszMaterial, TEXTURE_GROUP_VGUI );
|
||||||
m_pHeadLabelMaterial->IncrementReferenceCount();
|
m_pHeadLabelMaterial->IncrementReferenceCount();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user