summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroctorock <79596758+octorock@users.noreply.github.com>2022-02-27 21:35:21 +0100
committeroctorock <79596758+octorock@users.noreply.github.com>2022-02-27 21:35:21 +0100
commit05111993bc0ff1fa798c4344eb4f5ccc7283389b (patch)
tree5020aed2db1ea7ee698dfebb1a65ece2aecbe7a3 /src
parent754b3eb7601715af51ca2a86c5e312e205b45634 (diff)
Decompile Object69
Diffstat (limited to 'src')
-rw-r--r--src/object/object69.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/object/object69.c b/src/object/object69.c
new file mode 100644
index 00000000..b02c964c
--- /dev/null
+++ b/src/object/object69.c
@@ -0,0 +1,23 @@
+/**
+ * @file object69.c
+ * @ingroup Objects
+ *
+ * @brief Object69 object
+ */
+#include "entity.h"
+#include "hitbox.h"
+#include "functions.h"
+
+void Object69(Entity* this) {
+ if ((this->flags & ENT_SCRIPTED) != 0) {
+ if (this->action == 0) {
+ this->action = 1;
+ this->hitbox = (Hitbox*)&gHitbox_2;
+ sub_0807DD50(this);
+ } else {
+ sub_0807DD94(this, NULL);
+ }
+ } else {
+ this->action = 1;
+ }
+}