From 4a01abefac1cdc7f3bdcd09596ba3474a3405add Mon Sep 17 00:00:00 2001 From: Night Owl Date: Sun, 28 Aug 2016 23:58:23 +0500 Subject: [PATCH] Fix build. --- cl_dll/health.cpp | 2 +- dlls/barnacle.cpp | 2 -- dlls/hgrunt.cpp | 6 ++---- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/cl_dll/health.cpp b/cl_dll/health.cpp index 4aa07a67..9898d32c 100644 --- a/cl_dll/health.cpp +++ b/cl_dll/health.cpp @@ -219,7 +219,7 @@ int CHudHealth::Draw( float flTime ) { HealthWidth = gHUD.GetSpriteRect( gHUD.m_HUD_number_0 ).right - gHUD.GetSpriteRect( gHUD.m_HUD_number_0 ).left; - struct rect_s cross = gHUD.GetSpriteRect( m_HUD_cross ); + wrect_t cross = gHUD.GetSpriteRect( m_HUD_cross ); int CrossWidth = cross.right - cross.left; int CrossHeight = cross.bottom - cross.top; diff --git a/dlls/barnacle.cpp b/dlls/barnacle.cpp index 05d3c638..c6e8c7dc 100644 --- a/dlls/barnacle.cpp +++ b/dlls/barnacle.cpp @@ -141,8 +141,6 @@ void CBarnacle::Spawn() pev->nextthink = gpGlobals->time + 0.5; UTIL_SetOrigin( pev, pev->origin ); - - m_fXenCandySpawned = FALSE; } int CBarnacle::TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType ) diff --git a/dlls/hgrunt.cpp b/dlls/hgrunt.cpp index 70fdc0bd..ab9eeb17 100644 --- a/dlls/hgrunt.cpp +++ b/dlls/hgrunt.cpp @@ -841,13 +841,11 @@ void CHGrunt::HandleAnimEvent( MonsterEvent_t *pEvent ) { Vector vecShootDir; Vector vecShootOrigin; - + Vector vecGunPos; + Vector vecGunAngles; switch( pEvent->event ) { case HGRUNT_AE_DROP_GUN: - Vector vecGunPos; - Vector vecGunAngles; - GetAttachment( 0, vecGunPos, vecGunAngles ); // switch to body group with no gun.