mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-09-26 20:54:37 +00:00
tfv: fix edge conditions on hlin_double use
This commit is contained in:
parent
139c65f1ff
commit
299faa0060
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user