1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 12:06:07 +08:00

Modified SDK for GCC 4.1

This commit is contained in:
Scott Ehlert
2008-09-15 01:33:59 -05:00
parent 325306db96
commit 4c2b8fd6c4
543 changed files with 100067 additions and 91817 deletions

View File

@ -186,12 +186,12 @@ void CPointSpotlight::ComputeRenderInfo()
}
else if ( m_flSpotlightCurLength > m_flSpotlightMaxLength )
{
m_hSpotlightTarget->SetRenderColorA( (1-((m_flSpotlightCurLength-m_flSpotlightMaxLength)/m_flSpotlightMaxLength)) );
m_hSpotlightTarget->SetRenderColorA( static_cast<byte>((1-((m_flSpotlightCurLength-m_flSpotlightMaxLength)/m_flSpotlightMaxLength))) );
m_hSpotlight->SetFadeLength( m_flSpotlightMaxLength );
}
else
{
m_hSpotlightTarget->SetRenderColorA( 1.0 );
m_hSpotlightTarget->SetRenderColorA( 1 );
m_hSpotlight->SetFadeLength( m_flSpotlightCurLength );
}