From 22da46864392cfe6a43ec67c319cd9b1fcc079bd Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Wed, 8 Feb 2023 13:54:16 -0400 Subject: TMainTask: Add, and use `DISALLOW_OR_ALLOW_CHILD` macro --- include/pso/TMainTask.h | 3 +++ src/pso/TMainTask.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/pso/TMainTask.h b/include/pso/TMainTask.h index c2cfbfa..71341a2 100644 --- a/include/pso/TMainTask.h +++ b/include/pso/TMainTask.h @@ -23,6 +23,9 @@ #define SET_OR_CLEAR_CHILD_FLAGS(flags, old_flags, flag_bit) \ X_OR_Y_CHILD(flags, old_flags, set_flag, clear_flag, flag_bit) +#define DISALLOW_OR_ALLOW_CHILD(flags, old_flags, flag_name) \ + X_OR_Y_CHILD(flags, old_flags, disallow, allow, flag_name) + #define o(var, name) extern const char *var##_name; TL_OBJECTS #undef o diff --git a/src/pso/TMainTask.cpp b/src/pso/TMainTask.cpp index b9051b7..ab7e057 100644 --- a/src/pso/TMainTask.cpp +++ b/src/pso/TMainTask.cpp @@ -22,7 +22,7 @@ void TMainTask::func_80228924() {} void TMainTask::func_802289d0() {} void TMainTask::render() { - SET_OR_CLEAR_CHILD_FLAGS(lbl_805c5b98, lbl_805c5b9c, 4); + DISALLOW_OR_ALLOW_CHILD(lbl_805c5b98, lbl_805c5b9c, rendering); set_task_flags(2); some_main_task_flag = 0; func_80228ae8(); -- cgit v1.2.3-13-gbd6f