From 875049f3ce331ad39d4cb7749d4e09744d2060a3 Mon Sep 17 00:00:00 2001 From: Tal Hayon Date: Sun, 13 Mar 2022 11:04:57 +0200 Subject: Decompile object52 --- src/object/object52.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/object/object52.c (limited to 'src') diff --git a/src/object/object52.c b/src/object/object52.c new file mode 100644 index 00000000..d5905484 --- /dev/null +++ b/src/object/object52.c @@ -0,0 +1,22 @@ +#define NENT_DEPRECATED +#include "entity.h" +#include "flags.h" +#include "room.h" + +extern void sub_08078828(Entity*); +extern void sub_080A7C8C(u32 pos, u32 layer); + +void Object52(Entity* this) { + if (this->action == 0) { + if (CheckLocalFlag(this->type)) { + DeleteThisEntity(); + } + this->action = 1; + this->collisionLayer = 1; + sub_08078828(this); + } + if (this->interactType != 0) { + sub_080A7C8C(COORD_TO_TILE(this), 2); + DeleteThisEntity(); + } +} -- cgit v1.2.3