Skip to content

Commit

Permalink
Made DoubleSpeed in OW and retained 30fps
Browse files Browse the repository at this point in the history
  • Loading branch information
SoupPotato committed Jun 29, 2024
1 parent caad43d commit b28bc20
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions engine/battle/core.asm
Original file line number Diff line number Diff line change
Expand Up @@ -8349,6 +8349,11 @@ StartBattle:
; This check prevents you from entering a battle without any Pokemon.
; Those using walk-through-walls to bypass getting a Pokemon experience
; the effects of this check.
ldh a, [rIE]
push af
call NormalSpeed
pop af
ldh [rIE], a
ld a, [wPartyCount]
and a
ret z
Expand All @@ -8360,6 +8365,11 @@ StartBattle:
call ExitBattle
pop af
ld [wTimeOfDayPal], a
ldh a, [rIE]
push af
call DoubleSpeed
pop af
ldh [rIE], a
scf
ret

Expand Down
2 changes: 1 addition & 1 deletion engine/pc/bills_pc_ui.asm
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ _BillsPC:
; Restore regular speed.
ldh a, [rIE]
push af
call NormalSpeed
call DoubleSpeed
pop af
ldh [rIE], a

Expand Down
2 changes: 1 addition & 1 deletion home/init.asm
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Init::
ldh a, [hCGB]
and a
jr z, .no_double_speed
call NormalSpeed
call DoubleSpeed
.no_double_speed

xor a
Expand Down

0 comments on commit b28bc20

Please sign in to comment.