fix off-by-1 displaying game title in action slideshows

This commit is contained in:
4am 2020-03-08 21:35:14 -04:00
parent 8f5f1dbdd8
commit 7c97a5ce79

View File

@ -216,9 +216,9 @@ DrawGameTitleInActionSlideshowHGR
sta VTAB
lda #0 ; solid horizontal bar character
jsr @resetline
lda (SAVE),y ; (SAVE) -> game title, Y = 0, so A = title length
lda (SAVE),y ; (SAVE) -> game title, Y = 0, so A = title length + 1
clc
adc #$03
adc #$02
sta gPathname
lda #7 ; top-right rounded corner character
jsr @drawline
@ -226,8 +226,9 @@ DrawGameTitleInActionSlideshowHGR
inc VTAB
lda #" "
jsr @resetline
lda (SAVE),y ; A = title length
lda (SAVE),y ; A = title length + 1
tay
dey
- lda (SAVE),y
sta gPathname+1,y
dey