summaryrefslogtreecommitdiff
path: root/src/object/object1C.c
diff options
context:
space:
mode:
authortheo3 <arisstephenson2@gmail.com>2020-07-13 15:27:20 -0700
committertheo3 <arisstephenson2@gmail.com>2020-07-13 15:27:20 -0700
commit62ddaaa5f6fe2dc2aaa2dd002d4ce0b1d61a3cc9 (patch)
treed625ad1b183fc6aa5b56c00ce6573ef850679731 /src/object/object1C.c
parentc47f16e5e7b0abb010133b3ee1a58099d8b8915d (diff)
add subdirs
Diffstat (limited to 'src/object/object1C.c')
-rw-r--r--src/object/object1C.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/object/object1C.c b/src/object/object1C.c
new file mode 100644
index 00000000..16c20816
--- /dev/null
+++ b/src/object/object1C.c
@@ -0,0 +1,19 @@
+#include "global.h"
+#include "entity.h"
+
+extern u32 CheckRectOnScreen(s16, s16, u32, u32);
+extern void DeleteThisEntity();
+
+void Object1C(Entity *this)
+{
+ s32 iVar1;
+
+ if (this->action == 0) {
+ this->action = 1;
+ }
+ iVar1 = CheckRectOnScreen(this->field_0x80, this->field_0x82, 0x10, 0x10);
+ if (iVar1 == 0) {
+ this->parent->field_0x20 &= ~(1 << this->entityType.parameter);
+ DeleteThisEntity();
+ }
+}