From 63bffd9b34a49cc44533f8d78c5cf3e2b921d152 Mon Sep 17 00:00:00 2001 From: Tal Hayon Date: Sat, 29 Jan 2022 16:26:35 +0200 Subject: [PATCH] Use SurfaceType in LilyPadLarge --- src/object/lilypadLarge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/object/lilypadLarge.c b/src/object/lilypadLarge.c index 96b4dff9..5c1f6e6a 100644 --- a/src/object/lilypadLarge.c +++ b/src/object/lilypadLarge.c @@ -340,9 +340,9 @@ void sub_08085F1C(LilypadLargeEntity* this) { void sub_08085F48(LilypadLargeEntity* this) { u32 tmp = super->actionDelay & 0x80; if (tmp != 0) { - if (gPlayerState.floor_type == 0x17) { + if (gPlayerState.floor_type == SURFACE_ICE) { ResetPlayerVelocity(); - gPlayerState.floor_type = 0x19; + gPlayerState.floor_type = SURFACE_WATER; } SoundReq(SFX_WATER_WALK); if (this->unk_78.WORD_U < 0x1280000) {