mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-27 06:07:56 +03:00
Fixed env_tonemap_controller keyvalues ignoring default values
This commit is contained in:
parent
61bbe331dd
commit
72e846ec27
@ -106,7 +106,7 @@ bool CEnvTonemapController::KeyValue( const char *szKeyName, const char *szValue
|
||||
else if (FStrEq( szKeyName, "AutoExposureMin" ))
|
||||
{
|
||||
float flAutoExposureMin = atof( szValue );
|
||||
if (flAutoExposureMin != 1.0f)
|
||||
if (flAutoExposureMin != -1.0f)
|
||||
{
|
||||
m_flCustomAutoExposureMin = flAutoExposureMin;
|
||||
m_bUseCustomAutoExposureMin = true;
|
||||
@ -115,7 +115,7 @@ bool CEnvTonemapController::KeyValue( const char *szKeyName, const char *szValue
|
||||
else if (FStrEq( szKeyName, "AutoExposureMax" ))
|
||||
{
|
||||
float flAutoExposureMax = atof( szValue );
|
||||
if (flAutoExposureMax != 1.0f)
|
||||
if (flAutoExposureMax != -1.0f)
|
||||
{
|
||||
m_flCustomAutoExposureMax = flAutoExposureMax;
|
||||
m_bUseCustomAutoExposureMax = true;
|
||||
@ -124,7 +124,7 @@ bool CEnvTonemapController::KeyValue( const char *szKeyName, const char *szValue
|
||||
else if (FStrEq( szKeyName, "BloomScale" ))
|
||||
{
|
||||
float flBloomScale = atof( szValue );
|
||||
if (flBloomScale != 1.0f)
|
||||
if (flBloomScale != -1.0f)
|
||||
{
|
||||
m_flCustomBloomScale = flBloomScale;
|
||||
m_flCustomBloomScaleMinimum = flBloomScale;
|
||||
|
Loading…
x
Reference in New Issue
Block a user