summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-02-16 15:47:49 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-02-16 15:54:22 -0400
commit8f97c6a91c97c8ba2b40040928a32e21752ea937 (patch)
tree08a57f70efb84619b84f22e176bdcc319156bb92
parent0523e8a94a62d318d811131a74f8fe435c2492da (diff)
TObject: Add `toggle_flag_3()`
-rw-r--r--context.h1
-rw-r--r--include/pso/TObject.h1
-rw-r--r--src/pso/TObject2.cpp4
3 files changed, 6 insertions, 0 deletions
diff --git a/context.h b/context.h
index 4896f3a..f59aade 100644
--- a/context.h
+++ b/context.h
@@ -295,6 +295,7 @@ public:
void allow_rendering_shadows();
void disallow_rendering();
void allow_rendering();
+ void toggle_flag_3();
void set_flag_3();
void clear_flag_3();
void queue_destruction();
diff --git a/include/pso/TObject.h b/include/pso/TObject.h
index e9af709..851e4e2 100644
--- a/include/pso/TObject.h
+++ b/include/pso/TObject.h
@@ -125,6 +125,7 @@ public:
void allow_rendering_shadows();
void disallow_rendering();
void allow_rendering();
+ void toggle_flag_3();
void set_flag_3();
void clear_flag_3();
void queue_destruction();
diff --git a/src/pso/TObject2.cpp b/src/pso/TObject2.cpp
index 5b1a90a..f020bd3 100644
--- a/src/pso/TObject2.cpp
+++ b/src/pso/TObject2.cpp
@@ -28,6 +28,10 @@ void TObject::set_flag_3() {
set_flags(BIT_3);
}
+void TObject::toggle_flag_3() {
+ toggle_flags(BIT_3);
+}
+
void TObject::allow_rendering() {
clear_flags(DISALLOW_RENDER);
}