Skip to content

Commit

Permalink
Added override to stock AnyChildParameterFailed method, fixes #559.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrossignol committed Aug 26, 2016
1 parent 6269d26 commit 86e3d00
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Contract Configurator 1.18.0
- Fixed an issue that prevented expressions from working in resource loading (thanks hargn).
- Cycle through new contracts to generate in a random order to prevent certain contracts from getting preference.
- Fixed issue where contract expiries were never getting set (thanks DarkonZ).
- Fixed issue with some parameters combined with the All parameter causing incorrect contract failure (thanks tomf).

Contract Configurator 1.17.0
- Mission Control remembers the last visited tab when you open it, and takes you there.
Expand Down
Binary file modified GameData/ContractConfigurator/CC_RemoteTech.dll
Binary file not shown.
Binary file modified GameData/ContractConfigurator/ContractConfigurator.dll
Binary file not shown.
Binary file modified GameData/ContractConfigurator/KerKonConConExt.dll
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -290,5 +290,20 @@ public virtual void SetState(ParameterState state)
{
base.SetIncomplete();
}

public new bool AnyChildParametersFailed()
{
for (int i = ParameterCount; i-- > 0;)
{
ContractParameter param = GetParameter(i);
ContractConfiguratorParameter ccParam = param as ContractConfiguratorParameter;
if (param.State == ParameterState.Failed && (ccParam == null || !ccParam.fakeFailures))
{
return true;
}
}

return false;
}
}
}

0 comments on commit 86e3d00

Please sign in to comment.