diff --git a/src/game/client/c_baseanimating.h b/src/game/client/c_baseanimating.h index d82ae85f9..043945d48 100644 --- a/src/game/client/c_baseanimating.h +++ b/src/game/client/c_baseanimating.h @@ -81,7 +81,7 @@ class CAttachmentData QAngle m_angRotation; Vector m_vOriginVelocity; int m_nLastFramecount : 31; - int m_bAnglesComputed : 1; + bool m_bAnglesComputed : true; }; diff --git a/src/game/client/swarm/gameui/cvarslider.cpp b/src/game/client/swarm/gameui/cvarslider.cpp index 60c334700..edaa4cd85 100644 --- a/src/game/client/swarm/gameui/cvarslider.cpp +++ b/src/game/client/swarm/gameui/cvarslider.cpp @@ -262,7 +262,7 @@ void CCvarSlider::Reset() m_iLastSliderValue = m_iStartValue; return; } - float m_fStartValue = var.GetFloat(); + m_fStartValue = var.GetFloat(); m_fCurrentValue = m_fStartValue; int value = (int)( CVARSLIDER_SCALE_FACTOR * m_fStartValue ); diff --git a/src/game/client/viewrender.cpp b/src/game/client/viewrender.cpp index 3f62ae5df..91ea3203f 100644 --- a/src/game/client/viewrender.cpp +++ b/src/game/client/viewrender.cpp @@ -5131,7 +5131,10 @@ bool DrawingShadowDepthView( void ) //for easy externing { return (CurrentViewID() == VIEW_SHADOW_DEPTH_TEXTURE); } - + +#ifdef _WIN32 +#pragma warning (disable:4456) // hide 'declaration of 'VProf_' hides previous local declaration' +#endif //----------------------------------------------------------------------------- // //----------------------------------------------------------------------------- @@ -5220,6 +5223,9 @@ void CShadowDepthView::Draw() #endif } +#ifdef _WIN32 +#pragma warning (default:4456) +#endif //----------------------------------------------------------------------------- // diff --git a/src/game/server/ai_basenpc_schedule.cpp b/src/game/server/ai_basenpc_schedule.cpp index cbf58df26..78d27b82e 100644 --- a/src/game/server/ai_basenpc_schedule.cpp +++ b/src/game/server/ai_basenpc_schedule.cpp @@ -2167,8 +2167,7 @@ void CAI_BaseNPC::StartTask( const Task_t *pTask ) AIN_DEF_FLAGS, m_hStoredPathTarget ); - // TODO: is this a bug? why goal and not coverGoal? - foundPath = GetNavigator()->SetGoal( goal ); + foundPath = GetNavigator()->SetGoal( coverGoal ); m_flMoveWaitFinished = gpGlobals->curtime + pTask->flTaskData; } diff --git a/src/game/server/nav_generate.cpp b/src/game/server/nav_generate.cpp index d55cc001d..42363c11e 100644 --- a/src/game/server/nav_generate.cpp +++ b/src/game/server/nav_generate.cpp @@ -1596,7 +1596,6 @@ static bool testStitchConnection( CNavArea *source, CNavArea *target, const Vect else { // test going up ClimbUpHeight - bool success = false; for ( float height = StepHeight; height <= ClimbUpHeight; height += 1.0f ) { trace_t tr;