diff options
| author | Tal Hayon <talhayon1@gmail.com> | 2022-04-18 00:15:15 +0300 |
|---|---|---|
| committer | Tal Hayon <talhayon1@gmail.com> | 2022-04-18 00:15:15 +0300 |
| commit | de1df01c436a1755f50fcd5d57fddb044deefd72 (patch) | |
| tree | 15a7eb2826936b359f7a086a932752be30a6890d /src/object | |
| parent | cd4fdf40cb8491738ad257c16c5b38e1563e885b (diff) | |
Put const data in minishSizedEntrance
Diffstat (limited to 'src/object')
| -rw-r--r-- | src/object/minishSizedEntrance.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/object/minishSizedEntrance.c b/src/object/minishSizedEntrance.c index e40ac638..debcea2d 100644 --- a/src/object/minishSizedEntrance.c +++ b/src/object/minishSizedEntrance.c @@ -2,11 +2,15 @@ #include "game.h" #include "functions.h" -extern void (*const gUnk_08122254[])(Entity*); -extern u16 gUnk_0812225C[]; +void sub_08090F00(Entity*); +void sub_08090EC0(Entity*); void MinishSizedEntrance(Entity* this) { - gUnk_08122254[this->action](this); + static void (*const actionFuncs[])(Entity*) = { + sub_08090EC0, + sub_08090F00, + }; + actionFuncs[this->action](this); } void sub_08090EC0(Entity* this) { @@ -22,6 +26,12 @@ void sub_08090EC0(Entity* this) { } void sub_08090F00(Entity* this) { + static const u16 gUnk_0812225C[] = { + 0x400, + 0x100, + 0x800, + 0x200, + }; if (this->type == 1) { Entity* parent = this->parent; u32 mask = 1 << this->subtimer; |
