summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-02-08 13:54:16 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-02-08 13:54:16 -0400
commit22da46864392cfe6a43ec67c319cd9b1fcc079bd (patch)
tree826e5eebd09fe8aef930615a579532e69f6e3967
parent87fe4412c45be2f06883d7bb04c4e8966cf7beb2 (diff)
TMainTask: Add, and use `DISALLOW_OR_ALLOW_CHILD` macro
-rw-r--r--include/pso/TMainTask.h3
-rw-r--r--src/pso/TMainTask.cpp2
2 files changed, 4 insertions, 1 deletions
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();