adds api support for enabling/disabling controls and rules
This commit is contained in:
@@ -557,6 +557,10 @@ int controls(Project *pr)
|
||||
{
|
||||
// Make sure that link is defined
|
||||
control = &net->Control[i];
|
||||
if (control->isEnabled == DISABLED)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
reset = 0;
|
||||
if ( (k = control->Link) <= 0) continue;
|
||||
link = &net->Link[k];
|
||||
@@ -729,7 +733,10 @@ int controltimestep(Project *pr, long *tstep)
|
||||
{
|
||||
t = 0;
|
||||
control = &net->Control[i];
|
||||
|
||||
if (control->isEnabled == DISABLED)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
// Control depends on a tank level
|
||||
if ( (n = control->Node) > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user