Merge pull request #335 from hatal175/surfacetype

This commit is contained in:
notyourav 2022-02-01 15:53:59 -08:00 committed by GitHub
commit b354442b54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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) {