using int/bool convention instead of new enum type

This commit is contained in:
Sam Hatchett
2023-09-13 09:14:57 -04:00
parent 06a43cdb4e
commit d0ab568a5d
7 changed files with 13 additions and 15 deletions

View File

@@ -557,7 +557,7 @@ int controls(Project *pr)
{
// Make sure that link is defined
control = &net->Control[i];
if (control->isEnabled == DISABLED)
if (!control->isEnabled)
{
continue;
}
@@ -733,7 +733,7 @@ int controltimestep(Project *pr, long *tstep)
{
t = 0;
control = &net->Control[i];
if (control->isEnabled == DISABLED)
if (!control->isEnabled)
{
continue;
}