summaryrefslogtreecommitdiff
path: root/src/object/object1C.c
blob: 0c80735a1bab36a22cae5751c23d1f4094f33616 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "global.h"
#include "entity.h"

extern u32 CheckRectOnScreen(s16, s16, u32, u32);

void Object1C(Entity* this) {
    s32 iVar1;

    if (this->action == 0) {
        this->action = 1;
    }
    iVar1 = CheckRectOnScreen(this->field_0x80.HWORD, this->field_0x82.HWORD, 0x10, 0x10);
    if (iVar1 == 0) {
        this->parent->field_0x20 &= ~(1 << this->type2);
        DeleteThisEntity();
    }
}