From 62ddaaa5f6fe2dc2aaa2dd002d4ce0b1d61a3cc9 Mon Sep 17 00:00:00 2001 From: theo3 Date: Mon, 13 Jul 2020 15:27:20 -0700 Subject: add subdirs --- src/object/object1C.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/object/object1C.c (limited to 'src/object/object1C.c') 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(); + } +} -- cgit v1.2.3