Commit 5a957c6f authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Add additional check for FOD - WIP

parent aa494fc3
......@@ -28,7 +28,8 @@ namespace ITA
{
m_bReplaceUpdates = pConfig.GetValueInSubListOrDefault ( "ReplaceUpdates", "MasterSimulationScheduler", true );
if ( pConfig.HasSubList ( "MasterSimulationScheduler/DSScheduler" ) )
if ( pConfig.HasSubList ( "MasterSimulationScheduler/DSScheduler" ) &&
static_cast< FieldOfDuty >( pConfig.GetSubListCopy ( "MasterSimulationScheduler/DSScheduler" ).GetValueInSubList<int> ( "FieldOfDuty", "Scheduler" ) ) == FieldOfDuty::directSound )
{
auto subConfig = pConfig.GetSubListConstRef ( "MasterSimulationScheduler/DSScheduler" );
......@@ -46,7 +47,8 @@ namespace ITA
ITA_EXCEPT_INVALID_PARAMETER ( "Config does not have correct section \"MasterSimulationScheduler/DSScheduler\"." )
}
if ( pConfig.HasSubList ( "MasterSimulationScheduler/ERScheduler" ) )
if ( pConfig.HasSubList ( "MasterSimulationScheduler/ERScheduler" ) &&
static_cast< FieldOfDuty >( pConfig.GetSubListCopy ( "MasterSimulationScheduler/ERScheduler" ).GetValueInSubList<int> ( "FieldOfDuty", "Scheduler" ) ) == FieldOfDuty::earlyReflections )
{
auto subConfig = pConfig.GetSubListConstRef ( "MasterSimulationScheduler/ERScheduler" );
......@@ -64,7 +66,8 @@ namespace ITA
ITA_EXCEPT_INVALID_PARAMETER ( "Config does not have correct section \"MasterSimulationScheduler/ERScheduler\"." )
}
if ( pConfig.HasSubList ( "MasterSimulationScheduler/DDScheduler" ) )
if ( pConfig.HasSubList ( "MasterSimulationScheduler/DDScheduler" ) &&
static_cast< FieldOfDuty >( pConfig.GetSubListCopy ( "MasterSimulationScheduler/DDScheduler" ).GetValueInSubList<int> ( "FieldOfDuty", "Scheduler" ) ) == FieldOfDuty::diffuseDecay )
{
auto subConfig = pConfig.GetSubListConstRef ( "MasterSimulationScheduler/DDScheduler" );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment