Skip to content

Commit

Permalink
Name Func_07c4
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU committed Jun 30, 2024
1 parent 4709eb3 commit be2e679
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions constants/misc_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ DEF TEXT_DELAY_SLOW EQU %101 ; 5

; wd732 flags
DEF BIT_DEBUG_MODE EQU 1
DEF BIT_JUMPED_INTO_HOLE EQU 4
6 changes: 3 additions & 3 deletions home/overworld.asm
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ HandleFlyWarpOrDungeonWarp::
set 2, [hl] ; fly warp or dungeon warp
res 5, [hl] ; forced to ride bike
call LeaveMapAnim
call Func_07c4
call StopBikeSurf
ld a, BANK(PrepareForSpecialWarp)
call BankswitchCommon
call PrepareForSpecialWarp
Expand All @@ -779,14 +779,14 @@ HandleFlyWarpOrDungeonWarp::
LeaveMapAnim::
farjp _LeaveMapAnim

Func_07c4::
StopBikeSurf:
ld a, [wWalkBikeSurfState]
and a
ret z
xor a
ld [wWalkBikeSurfState], a
ld hl, wd732
bit 4, [hl]
bit BIT_JUMPED_INTO_HOLE, [hl]
ret z
call PlayDefaultMusic
ret
Expand Down

0 comments on commit be2e679

Please sign in to comment.