mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-26 23:05:30 +03:00
Fixed SetBloomScaleRange's syntax bug (although it seems the feature itself remains unfinished)
This commit is contained in:
parent
60aacf6df7
commit
69fa4a0064
@ -189,7 +189,7 @@ void CEnvTonemapController::InputBlendTonemapScale( inputdata_t &inputdata )
|
|||||||
void CEnvTonemapController::InputSetBloomScaleRange( inputdata_t &inputdata )
|
void CEnvTonemapController::InputSetBloomScaleRange( inputdata_t &inputdata )
|
||||||
{
|
{
|
||||||
float bloom_max=1, bloom_min=1;
|
float bloom_max=1, bloom_min=1;
|
||||||
int nargs=sscanf("%f %f",inputdata.value.String(), bloom_max, bloom_min );
|
int nargs=sscanf( inputdata.value.String(), "%f %f", &bloom_max, &bloom_min );
|
||||||
if (nargs != 2)
|
if (nargs != 2)
|
||||||
{
|
{
|
||||||
Warning("%s (%s) received SetBloomScaleRange input without 2 arguments. Syntax: <max bloom> <min bloom>\n", GetClassname(), GetDebugName() );
|
Warning("%s (%s) received SetBloomScaleRange input without 2 arguments. Syntax: <max bloom> <min bloom>\n", GetClassname(), GetDebugName() );
|
||||||
@ -197,6 +197,9 @@ void CEnvTonemapController::InputSetBloomScaleRange( inputdata_t &inputdata )
|
|||||||
}
|
}
|
||||||
m_flCustomBloomScale=bloom_max;
|
m_flCustomBloomScale=bloom_max;
|
||||||
m_flCustomBloomScaleMinimum=bloom_min;
|
m_flCustomBloomScaleMinimum=bloom_min;
|
||||||
|
#ifdef MAPBASE
|
||||||
|
m_bUseCustomBloomScale = true;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user