diff --git a/Atari/gr_basics.asm b/Atari/gr_basics.asm index bb6c9f8..ebfa84c 100644 --- a/Atari/gr_basics.asm +++ b/Atari/gr_basics.asm @@ -239,7 +239,10 @@ MinCalculated lda xdraw and #%00000111 ; only every 8th pixel bne NotFillBytes - ; A=0 is here + lda temp2 + cmp #screenheight+1 ; only if minimum is not miniminimum :) + beq NotFillBytes + dec ydraw ; protection if temp2=screenheight @ lda #0 sta (xbyte),y diff --git a/C64/gr_basics.asm b/C64/gr_basics.asm index 2999463..7682678 100644 --- a/C64/gr_basics.asm +++ b/C64/gr_basics.asm @@ -247,7 +247,10 @@ MinCalculated lda xdraw and #%00000111 ; only every 8th pixel bne NotFillBytes - ; A=0 is here + lda temp2 + cmp #screenheight+1 ; only if minimum is not miniminimum :) + beq NotFillBytes + dec ydraw ; protection if temp2=screenheight @ lda #0 tay diff --git a/grafproc.asm b/grafproc.asm index ae1b631..5911d90 100644 --- a/grafproc.asm +++ b/grafproc.asm @@ -1539,9 +1539,10 @@ EndDrawing rts .endp -/* + +/* ;-------------------------------------------------- -.proc calculatemountains0 +.proc calculatemountains ; Only for testing - makes ground flat (0 pixels) ; and places tanks on it ; remember to remove in final compilation :) @@ -1555,6 +1556,13 @@ nextPointDrawing inw xdraw cpw xdraw #screenwidth bne nextPointDrawing + ; 20 first points - max height! + mwa #mountaintable modify + ldy #20 + lda #0 +@ sta (modify),y + dey + bpl @- ldx NumberOfPlayers dex SetYofNextTank diff --git a/scorch.bin b/scorch.bin index 615f498..25039d2 100644 Binary files a/scorch.bin and b/scorch.bin differ diff --git a/scorch.xex b/scorch.xex index c9ac740..807192c 100644 Binary files a/scorch.xex and b/scorch.xex differ diff --git a/scorchC64.prg b/scorchC64.prg index c0b74cb..9c2bda6 100644 Binary files a/scorchC64.prg and b/scorchC64.prg differ