Files
tmc/src/object1C.c
T
21aslade 06f2cd289d Two functions in townMinish.c OK
Also created npc.h and format.sh'd various files.
A third function is outlined in townMinish.c, but currently
non-matching.
2020-06-15 16:23:10 -06:00

20 lines
419 B
C

#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.parameter2);
DeleteThisEntity();
}
}