summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();