mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-08 19:12:51 +00:00
Fix hud_showtargetid doing nothing
This commit is contained in:
parent
a62efecf62
commit
f7bb47d7cb
3 changed files with 9 additions and 1 deletions
|
@ -135,6 +135,12 @@ void C_HL2MP_Player::UpdateIDTarget()
|
|||
if ( !IsLocalPlayer() )
|
||||
return;
|
||||
|
||||
if ( !hud_showtargetid.GetBool() )
|
||||
{
|
||||
m_iIDEntIndex = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
// Clear old target and find a new one
|
||||
m_iIDEntIndex = 0;
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@ class C_HL2MP_Player;
|
|||
#include "hl2mp_player_shared.h"
|
||||
#include "beamdraw.h"
|
||||
|
||||
extern ConVar hud_showtargetid;
|
||||
|
||||
//=============================================================================
|
||||
//=============================================================================
|
||||
class CSuitPowerDevice
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#define PLAYER_HINT_DISTANCE_SQ (PLAYER_HINT_DISTANCE*PLAYER_HINT_DISTANCE)
|
||||
|
||||
static ConVar hud_centerid( "hud_centerid", "1" );
|
||||
static ConVar hud_showtargetid( "hud_showtargetid", "1" );
|
||||
ConVar hud_showtargetid( "hud_showtargetid", "1" );
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
|
|
Loading…
Reference in a new issue