diff options
| author | octorock <79596758+octorock@users.noreply.github.com> | 2023-12-31 02:12:41 +0100 |
|---|---|---|
| committer | octorock <79596758+octorock@users.noreply.github.com> | 2023-12-31 02:12:41 +0100 |
| commit | 109b1020dcbfa17e80d28c522b5d792f7b3c6d46 (patch) | |
| tree | cf23c1134de2891d0eed3b55549e70b29eb1997f /src/code_08049DF4.c | |
| parent | 957da774e4c34100e0bd352b1570af02bb7f7521 (diff) | |
| parent | 9c87bcca8ea4b52199ed908c0ea28ab08b1d0747 (diff) | |
Merge branch 'master' into tilemap-docs
Diffstat (limited to 'src/code_08049DF4.c')
| -rw-r--r-- | src/code_08049DF4.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/code_08049DF4.c b/src/code_08049DF4.c index 0b5792f2..9c8c8eda 100644 --- a/src/code_08049DF4.c +++ b/src/code_08049DF4.c @@ -1,4 +1,3 @@ -#define NENT_DEPRECATED #include "asm.h" #include "global.h" #include "entity.h" @@ -25,8 +24,8 @@ Entity* sub_08049E18(void) { !(gPlayerState.flags & (PL_BUSY | PL_DROWNING | PL_CAPTURED | PL_USE_PORTAL | PL_HIDDEN | PL_DISABLE_ITEMS | PL_FALLING | PL_FROZEN | PL_IN_MINECART | PL_PIT_IS_EXIT | PL_MOLDWORM_CAPTURED | PL_IN_HOLE | PL_CONVEYOR_PUSHED | PL_CLIMBING))) { - gUnk_020000B0 = &gPlayerEntity; - return &gPlayerEntity; + gUnk_020000B0 = &gPlayerEntity.base; + return &gPlayerEntity.base; } return NULL; } @@ -36,8 +35,8 @@ Entity* sub_08049E4C(void) { !(gPlayerState.flags & (PL_BUSY | PL_DROWNING | PL_CAPTURED | PL_USE_PORTAL | PL_HIDDEN | PL_MINISH | PL_DISABLE_ITEMS | PL_FALLING | PL_FROZEN | PL_IN_MINECART | PL_PIT_IS_EXIT | PL_MOLDWORM_CAPTURED | PL_IN_HOLE | PL_CONVEYOR_PUSHED | PL_CLIMBING))) { - gUnk_020000B0 = &gPlayerEntity; - return &gPlayerEntity; + gUnk_020000B0 = &gPlayerEntity.base; + return &gPlayerEntity.base; } return NULL; } @@ -46,15 +45,15 @@ Entity* sub_08049E80(void) { if ((gPlayerState.field_0x3c != 0) || !(gPlayerState.flags & PL_MINISH)) { return NULL; } - gUnk_020000B0 = &gPlayerEntity; - return &gPlayerEntity; + gUnk_020000B0 = &gPlayerEntity.base; + return &gPlayerEntity.base; } Entity* sub_08049EB0(void) { if ((gPlayerState.field_0x3c == 0) && !(gPlayerState.flags & (PL_MOLDWORM_CAPTURED | PL_DISABLE_ITEMS | PL_MINISH | PL_CAPTURED))) { - gUnk_020000B0 = &gPlayerEntity; - return &gPlayerEntity; + gUnk_020000B0 = &gPlayerEntity.base; + return &gPlayerEntity.base; } return NULL; } |
