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:
@ -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 );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user