diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-02-08 13:35:54 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-02-08 13:38:01 -0400 |
commit | f1bb53df8d5a0b0cf462fb92a5358bc126309876 (patch) | |
tree | a2eaa67ba5b7375aae08fa4aa590fb9ad93a2a61 | |
parent | 1ae14453aab790a9614eaaff17647269fe6877f4 (diff) |
TObject: Rename `is_flag_0_clear_for_all_parents()` ->
`all_parents_unqueued_for_destruction()`
-rw-r--r-- | include/pso/TObject.h | 2 | ||||
-rw-r--r-- | src/pso/TObject.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/pso/TObject.h b/include/pso/TObject.h index 2671c90..c851480 100644 --- a/include/pso/TObject.h +++ b/include/pso/TObject.h @@ -85,7 +85,7 @@ public: void empty_func2(); void log(const char *str); int get_node_count(); - bool is_flag_0_clear_for_all_parents(); + bool all_parents_unqueued_for_destruction(); static void *alloc(unsigned long size); static void free(void *ptr); bool toggle_flag_9_if_flag_10_is_clear(); diff --git a/src/pso/TObject.cpp b/src/pso/TObject.cpp index d6cfcb0..1d87c4b 100644 --- a/src/pso/TObject.cpp +++ b/src/pso/TObject.cpp @@ -40,7 +40,7 @@ void *TObject::alloc(unsigned long size) { } -bool TObject::is_flag_0_clear_for_all_parents() { +bool TObject::all_parents_unqueued_for_destruction() { for (TObject *parent = this; parent != NULL; parent = parent->up) { if (parent->get_flags(QUEUE_DESTRUCTION)) { return false; |