diff options
| author | Tal Hayon <talhayon1@gmail.com> | 2022-03-13 11:04:57 +0200 |
|---|---|---|
| committer | Tal Hayon <talhayon1@gmail.com> | 2022-03-13 11:04:57 +0200 |
| commit | 875049f3ce331ad39d4cb7749d4e09744d2060a3 (patch) | |
| tree | f7a67008b5d06ae82f835feb4bbfa1ca54e64c9e /src/object | |
| parent | 8986c417cf1f59fd165414153df6b9f4012a7685 (diff) | |
Decompile object52
Diffstat (limited to 'src/object')
| -rw-r--r-- | src/object/object52.c | 22 |
1 files changed, 22 insertions, 0 deletions
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(); + } +} |
