tfv: fix edge conditions on hlin_double use

This commit is contained in:
Vince Weaver 2017-11-18 23:07:30 -05:00
parent 139c65f1ff
commit 299faa0060

View File

@ -385,7 +385,7 @@ back_forest:
lda TFV_Y lda TFV_Y
clc clc
adc #8 adc #6
back_forest_loop: back_forest_loop:
pha ; 10, ends at 23 pha ; 10, ends at 23
@ -615,6 +615,9 @@ fore_forest:
clc clc
adc #8 adc #8
fore_forest_loop: fore_forest_loop:
cmp #36
beq done_forest_loop
pha pha
lsr ; limit=22+(i/4); lsr ; limit=22+(i/4);
@ -635,8 +638,9 @@ fore_forest_loop:
pla pla
clc clc
adc #2 adc #2
cmp #36 bne fore_forest_loop
bmi fore_forest_loop
done_forest_loop:
;==================== ;====================
; Draw tree trunks ; Draw tree trunks
@ -1009,7 +1013,7 @@ draw_north_shore:
ldx #COLOR_BOTH_DARKBLUE ldx #COLOR_BOTH_DARKBLUE
stx COLOR stx COLOR
lda #40 lda #39
sta V2 sta V2
ldy #0 ldy #0
lda #10 lda #10