From 3db5d61c7f4551da1caf11ff9f597ad1578249b8 Mon Sep 17 00:00:00 2001 From: yenatch Date: Tue, 4 Mar 2014 05:19:59 -0500 Subject: [PATCH] Minor cleanup at the end of bank 10. --- main.asm | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/main.asm b/main.asm index 9f9eefdc4..beca121d9 100644 --- a/main.asm +++ b/main.asm @@ -47619,7 +47619,7 @@ Function421f5: ; 421f5 cp $ff jp z, Function423ff - ld [MagikarpLength], a + ld [Buffer1], a push hl ld a, [CurPartyMon] @@ -47631,7 +47631,7 @@ Function421f5: ; 421f5 and a jp z, Function421f5 - ld a, [MagikarpLength] + ld a, [Buffer1] dec a ld b, 0 ld c, a @@ -47927,8 +47927,8 @@ Function421f5: ; 421f5 jp .asm_42230 ; 423fe -INCBIN "baserom.gbc", $423fe, $423ff - $423fe - +Function423fe: ; 423fe + pop hl Function423ff: ; 423ff pop de @@ -48027,7 +48027,7 @@ Function42487: ; 42487 ld a, [$d265] ld [CurPartySpecies], a dec a - ld b, $0 + ld b, 0 ld c, a ld hl, EvosAttacksPointers add hl, bc @@ -48223,7 +48223,7 @@ GetPreEvolution: ; 42581 ; Return carry and the new species in CurPartySpecies ; if a pre-evolution is found. - ld c, BULBASAUR - 1 + ld c, 0 .asm_42583 ld hl, EvosAttacksPointers ld b, 0 @@ -48268,8 +48268,6 @@ GetPreEvolution: ; 42581 - - SECTION "bank11", ROMX, BANK[$11] INCLUDE "engine/fruit_trees.asm"