summaryrefslogtreecommitdiff
path: root/src/object/floatingPlatform.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/object/floatingPlatform.c')
-rw-r--r--src/object/floatingPlatform.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/object/floatingPlatform.c b/src/object/floatingPlatform.c
index 76f00964..3a260350 100644
--- a/src/object/floatingPlatform.c
+++ b/src/object/floatingPlatform.c
@@ -4,7 +4,6 @@
*
* @brief Floating Platform object
*/
-#define NENT_DEPRECATED
#include "entity.h"
#include "functions.h"
#include "object.h"
@@ -64,9 +63,9 @@ bool32 sub_08086168(FloatingPlatformEntity* this) {
const u8* ptr;
ptr = gUnk_08120658 + super->type * 2;
- if (((EntityInRectRadius(super, &gPlayerEntity, ptr[0], ptr[1])) && PlayerCanBeMoved())) {
+ if (((EntityInRectRadius(super, &gPlayerEntity.base, ptr[0], ptr[1])) && PlayerCanBeMoved())) {
gPlayerState.field_0x14 = 1;
- if (gPlayerEntity.z.HALF.HI == 0) {
+ if (gPlayerEntity.base.z.HALF.HI == 0) {
return TRUE;
} else {
return FALSE;