diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-02-03 17:28:36 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-02-03 17:28:36 -0400 |
commit | ac91fed53768a713b1de0577340084e59afb4d6d (patch) | |
tree | 2c21d87ab28006590849f873227c5e5c12ccb1b5 /src | |
parent | 96254c41f8fc023501014d36295839fcacb4be10 (diff) |
TMainTask: Make use of `SET_OR_CLEAR_CHILD_FLAGS` in `run_task()`
Diffstat (limited to 'src')
-rw-r--r-- | src/pso/TMainTask.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/pso/TMainTask.cpp b/src/pso/TMainTask.cpp index c0a6f88..f255203 100644 --- a/src/pso/TMainTask.cpp +++ b/src/pso/TMainTask.cpp @@ -6,18 +6,7 @@ u32 main_task_flags; u32 old_main_task_flags; void TMainTask::run_task() { - if (main_task_flags != old_main_task_flags) { - TMainTask *child; - u32 bit = 1; - FOREACH_NODE_NODECL_MULTI_ITER(TMainTask, main_task.down, child, bit <<= 1) { - if (main_task_flags & bit) { - child->set_flag_3(); - } else { - child->clear_flag_3(); - } - } - old_main_task_flags = main_task_flags; - } + SET_OR_CLEAR_CHILD_FLAGS(main_task_flags, old_main_task_flags, 3); some_main_task_flag = 0; set_task_flags(1); run_tasks(); |