Clear weapon list before redraw

Better descriptions of new procedures and fix for bug in drawmountains (C64)
This commit is contained in:
Pecusx
2023-06-13 10:56:52 +02:00
parent acec79fee7
commit 54c627b3b5
7 changed files with 57 additions and 17 deletions
+13 -6
View File
@@ -184,6 +184,13 @@ ClearPlot
mva #1 color
drawmountainsloop
jsr DrawMountainLine
inw modify
inw xdraw
cpw xdraw #screenwidth
jne drawmountainsloop
rts
DrawMountainLine
.IF FASTER_GRAF_PROCS = 1
; calculate lower point in one screen byte
lda xdraw
@@ -200,14 +207,12 @@ NotLower
sta temp2
inc temp2 ; this is our minimum
MinCalculated
.ENDIF
ldy #0
lda (modify),y
cmp #screenheight
beq NoMountain
sta ydraw
sty ydraw+1
.IF FASTER_GRAF_PROCS = 1
; there was Drawline proc
lda #screenheight
sec
@@ -274,6 +279,12 @@ MinCalculated
bne @-
NotFillBytes
.ELSE
ldy #0
lda (modify),y
cmp #screenheight
beq NoMountain
sta ydraw
sty ydraw+1
; there was Drawline proc
drawline
jsr plot.MakePlot
@@ -284,10 +295,6 @@ drawline
; end of Drawline proc
.ENDIF
NoMountain
inw modify
inw xdraw
cpw xdraw #screenwidth
jne drawmountainsloop
rts
.endp
;--------------------------------------------------