Skip to content

Commit

Permalink
Fix text in buy/sell tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
D0ntPanic committed Nov 12, 2015
1 parent c286d46 commit fe02da4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
13 changes: 12 additions & 1 deletion buy.asm
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,18 @@ count:
jsr wait_for_vblank_if_rendering

lda arg0
jsr get_string_with_item_count
tax
lda valid_shop_index, x
cmp #$ff
bne nonzerocount
lda #0
jmp getcountstr & $ffff
nonzerocount:
asl
tax
lda inventory, x
getcountstr:
jsr byte_to_padded_str

; Get the item type
lda arg0
Expand Down
13 changes: 12 additions & 1 deletion sell.asm
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,18 @@ count:
jsr wait_for_vblank_if_rendering

lda arg0
jsr get_string_with_item_count
tax
lda valid_shop_index, x
cmp #$ff
bne nonzerocount
lda #0
jmp getcountstr & $ffff
nonzerocount:
asl
tax
lda inventory, x
getcountstr:
jsr byte_to_padded_str

; Get the item type
lda arg0
Expand Down

0 comments on commit fe02da4

Please sign in to comment.