aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/hl2/hud_autoaim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mp/src/game/client/hl2/hud_autoaim.cpp')
-rw-r--r--mp/src/game/client/hl2/hud_autoaim.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/mp/src/game/client/hl2/hud_autoaim.cpp b/mp/src/game/client/hl2/hud_autoaim.cpp
index 3339a72f..aa808acf 100644
--- a/mp/src/game/client/hl2/hud_autoaim.cpp
+++ b/mp/src/game/client/hl2/hud_autoaim.cpp
@@ -146,6 +146,7 @@ void CHUDAutoAim::VidInit( void )
//-----------------------------------------------------------------------------
bool CHUDAutoAim::ShouldDraw( void )
{
+#ifndef HL1_CLIENT_DLL
C_BaseHLPlayer *pLocalPlayer = (C_BaseHLPlayer *)C_BasePlayer::GetLocalPlayer();
if ( pLocalPlayer )
{
@@ -154,6 +155,7 @@ bool CHUDAutoAim::ShouldDraw( void )
return false;
}
}
+#endif
return ( (hud_draw_fixed_reticle.GetBool() || hud_draw_active_reticle.GetBool()) && CHudElement::ShouldDraw() && !engine->IsDrawingLoadingImage() );
}