Skip to content

Commit

Permalink
Cleanup name list code
Browse files Browse the repository at this point in the history
  • Loading branch information
JustRegularLuna committed Jan 5, 2016
1 parent 06ba22c commit b86dd2f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions home.asm
Expand Up @@ -3257,14 +3257,17 @@ GetName:: ; 376b (0:376b)
; [wPredefBank] = bank of list
;
; returns pointer to name in de
ld a, [wNameListType] ; added check for list type
cp a, ITEM_NAME ; compare to move list
ld a,[wd0b5]
ld [wd11e],a
jr nz, .nonMachine ; SHOULD skip the HM check if in move names
ld a,[wNameListType]
cp ITEM_NAME
jr nz, .noItem
cp HM_01 ;it's TM/HM
jp nc,GetMachineName
.nonMachine ; Return here if not an item
.noItem ; Return here if not an item
ld a,[H_LOADEDROMBANK]
push af
push hl
Expand Down

0 comments on commit b86dd2f

Please sign in to comment.