Another trampoline gone.
This commit is contained in:
parent
e831a9d51b
commit
9da05f738c
13
src/system.c
13
src/system.c
@ -1039,16 +1039,19 @@ iterateRuns (const System sys, int (*callback) (int r))
|
|||||||
int
|
int
|
||||||
iterateRegularRuns (const System sys, int (*callback) (int r))
|
iterateRegularRuns (const System sys, int (*callback) (int r))
|
||||||
{
|
{
|
||||||
int regular (int r)
|
int r;
|
||||||
|
|
||||||
|
for (r = 0; r < sys->maxruns; r++)
|
||||||
{
|
{
|
||||||
if (sys->runs[r].protocol != INTRUDER)
|
if (sys->runs[r].protocol != INTRUDER)
|
||||||
{
|
{
|
||||||
return callback (r);
|
if (!callback (r))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
|
|
||||||
return iterateRuns (sys, regular);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Iterate over events in a certain run (increasing through role)
|
// Iterate over events in a certain run (increasing through role)
|
||||||
|
Loading…
Reference in New Issue
Block a user