Fixed another nested functions.
This commit is contained in:
parent
0d9c23c33b
commit
ac7e0a144b
15
src/system.c
15
src/system.c
@ -1081,17 +1081,20 @@ iterateAllEvents (const System sys,
|
|||||||
{
|
{
|
||||||
int run;
|
int run;
|
||||||
|
|
||||||
int callwrapper (Roledef rd, int ev)
|
|
||||||
{
|
|
||||||
return callback (run, rd, ev);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (run = 0; run < sys->maxruns; run++)
|
for (run = 0; run < sys->maxruns; run++)
|
||||||
{
|
{
|
||||||
if (!iterateEvents (sys, run, callwrapper))
|
int e;
|
||||||
|
Roledef rd;
|
||||||
|
|
||||||
|
rd = sys->runs[run].start;
|
||||||
|
for (e = 0; e < sys->runs[run].step; e++)
|
||||||
|
{
|
||||||
|
if (!callback (run, rd, e))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
rd = rd->next;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user