Fix item name draw bug when no items

This commit is contained in:
scawful
2023-08-14 09:08:31 -04:00
parent 9b1c868374
commit 8bad02d28a

View File

@@ -112,7 +112,8 @@ Menu_BottleIems:
Menu_DrawItemName: Menu_DrawItemName:
{ {
LDA.w $0202 : DEC LDA.w $0202 : BEQ .no_items
DEC
ASL : ASL : ASL : ASL : ASL ASL : ASL : ASL : ASL : ASL
LDY.w #$000 LDY.w #$000
TAX TAX
@@ -121,6 +122,7 @@ Menu_DrawItemName:
STA.w $1692, Y ; <- into the buffer STA.w $1692, Y ; <- into the buffer
INX : INX INX : INX
INY : INY : CPY #$001C : BCC .loop INY : INY : CPY #$001C : BCC .loop
.no_items
RTS RTS
} }
@@ -210,7 +212,7 @@ TestLocationName:
dw "________________", "________________", "________________", "________________" ; 256 dw "________________", "________________", "________________", "________________" ; 256
dw "________________", "________________", "________________", "________________" ; 260 dw "________________", "________________", "________________", "________________" ; 260
dw "LINKS_HOUSE_____", "ZORA_CHAMBERS___", "________________", "________________" dw "YOUR_HOUSE______", "ZORA_CHAMBERS___", "________________", "________________"
dw "________________", "________________", "________________", "________________" dw "________________", "________________", "________________", "________________"
dw "________________", "________________", "________________", "________________" ; 272 dw "________________", "________________", "________________", "________________" ; 272